-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml.disabled
151 lines (151 loc) · 5.68 KB
/
.travis.yml.disabled
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
notifications:
email: false
git:
quiet: true
depth: false
language: java
jdk: openjdk11
node_js: lts/*
python: 3.8
services:
- xvfb
- docker
addons:
apt:
update: false
packages:
- jq
- bash
- curl
- tree
- httpie
- docker-ce
install: true
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
#
- |
if [ ! -f ${HOME}/.local/daggerok/bash-functions/master/main.bash ] ; then
mkdir -p ${HOME}/.local/daggerok/bash-functions/master ;
curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash > ${HOME}/.local/daggerok/bash-functions/master/main.bash ;
fi
source ${HOME}/.local/daggerok/bash-functions/master/main.bash ;
- stop_any 80 5432 8080
before_script:
- docker-compose version
- http --version --debug
env:
global:
- TERM=dumb
jobs:
include:
- stage: test
name: user-message jib
jdk: openjdk11
script:
- cd $TRAVIS_BUILD_DIR && ./gradlew -b user-message/build.gradle.kts
- cd $TRAVIS_BUILD_DIR && ./gradlew -b user-message/build.gradle.kts start
- wait_for 8080
- sleep 10s
- http :8080
- http :8080/users
- http :8080/messages
- cd $TRAVIS_BUILD_DIR && ./gradlew -b user-message/build.gradle.kts stop
- stage: test
name: boot-your-reactor-kotlin-coroutines
jdk: openjdk11
script: ./gradlew
- stage: test
name: bot
jdk: openjdk11
script:
- ./gradlew -b bot/build.gradle.kts build
- java -jar bot/build/libs/*.jar
- stage: test
name: bot bash
jdk: openjdk11
script:
- ./gradlew -b bot/build.gradle.kts build
- bash bot/build/libs/*.jar
- stage: test
name: bot
jdk: openjdk11
script:
- ./gradlew -b bot/build.gradle.kts build
- java -jar bot/build/libs/*.jar
- stage: test
name: bot bash
jdk: openjdk11
script:
- ./gradlew -b bot/build.gradle.kts build
- bash bot/build/libs/*.jar
- stage: test
name: user-message bash
jdk: openjdk11
script:
- ./gradlew -b user-message/build.gradle.kts build
- bash user-message/build/libs/*.jar &
- wait_for 8080
- http :8080/actuator
- http :8080/
- http :8080/users
- http :8080/messages
- http :8080/actuator/health
- sleep 1s
- stop_any 80 8080
- stage: test
name: city bash
jdk: openjdk11
script:
- ./gradlew -b city/build.gradle.kts build
- bash city/build/libs/*.jar &
- wait_for 8080
- http :8080
- sleep 1s
- stop_any 80 8080
- stage: test
jdk: openjdk11
name: gradle
script: ./gradlew dependencyUpdates -Drevision=release
after_script: cat build/dependencyUpdates/report.txt
- stage: deploy
name: VuePress documentation deployment
node_js: lts/*
jdk: openjdk11
env:
# travis encrypt GITHUB_TOKEN=ololo-trololo
- secure: "n3/ZYgUxU2odhmf7dA/UQVWzaNLirxixAA1zg7unQA5mKLfsGR/R3PrBJ+/YJk1mczMGoNxfo20Sox+qI6aJvHTA5jqg7510poFdmQNa5VudONs+znvkACQ1mYL2wK29/gkM4e8gId8rTEkmbodTF1gka0bJYezLLPaVIN2LdwXScnez64T5Yun31zc/910CcrfTn3TOnA0kSzmf/0FYbaP2NmyRubGp5FB8pdryWXmk+UlTysbGHUod6E/t6QyjerxkSu8hZZYzF96U2xrJHff2EKZA3XkOc29peRtKguSnobF7Yf/8h+XvXcMx/x4ORGxp67uWvxz967lIVDqAL0JF4UskImDqjliHsJB8gu5IHfk60QTZjQMuVUSFvf/tz+kqgEu40c/AzxlZQftSsk9gPrJDVuVQjJSwmtFg5KFaNe2tvmP7c9lyQZWnVDd0GWmsCE6DQysEqAYpRpQui5k2ZCdZO2R67XTqZZYAJFzkYdiwRqsNKWII8mR0P5paD3FtnpgHblEal4x8teuME4uKPOaqHQ4iozIwJTXOjhgoAinVu9HisjK8wi2g8aEJpwx9s7lPZ0iMeES7DulON9thIL49iTbTFjnOzonnh6xM32AJqcBFUdR+VHLO3ciR+cun3HKvK0wJcIXgeGRzohkhwTsK3glbZAJiMT7H3uY="
- secure: "m2vQZal8xQ1SbQnkzt922UZ1BlU97WKxIkzmQ/UHeGXXfNn/PEhhfrZM4szB4Tpam1XjZN++LodA9auGuahgHovIL6MFjb2j9+t3ttMcbEUjPAc3INrRJ9DjZCYvF6vTQGE5oW4fnvVn+Qjn7NkxjjeBTIm0Rn09gnV6dMGk05vfPtBe+A3biHS8ldOpvygJ0a/xkoOXzP4k3f4keSES47h2zcMRtJT5X8f5kvRoA7mpaKt3G/UxCLZH+t+O19gkCQzmWAY2RgfE4fBPEECqsZXd5y5v0i8MiI/XO9N+hLowVLRAGaeAy4PaKiI23did/AZeySlGuc7QpW3qJtg63194Fmj79VwoGht5/jnbfemuZ2qW4dEs0nQWr8WbqNugzYBEXk/MWBbV+c4RYSwKQlRmEhQ7uRk4ubwgSg+j/BIoBcr8MlQuo/UZ8V5hp/lgb1FG9ONTMAQjMKawPkEP6bFlWumKl/DDk9WoHg6Khp2Vnw8jMV/79LndEfQg9tZBTuutAvLYMxzkDg9pDQAAE7YCfCDiNdPpvxbvbWKa3sJM4IKBBhjl8JLxwCSuCBarBezQfOWWVtwsJR5am8bnbrBDc05Am93NmD1DT43nflI/sDnuA/6iPF3OIbSf3H2TUhw1KZHYZlxNJmw6IKiyWZZT8hgGPWnD/hfDa2ls/bc="
script: skip
before_deploy:
- export GITHUB_AUTH="-Dorg.ajoberstar.grgit.auth.password=${GITHUB_PASSWORD} -Dorg.ajoberstar.grgit.auth.username=daggerok"
- bash -c './gradlew ${GITHUB_AUTH} reckonTagPush -Preckon.stage=final'
#- bash -c './gradlew ${GITHUB_AUTH} reckonTagPush -Preckon.stage=final -b bot/build.gradle.kts'
#- bash -c './gradlew ${GITHUB_AUTH} reckonTagPush -Preckon.stage=final -b city/build.gradle.kts'
#- bash -c './gradlew ${GITHUB_AUTH} reckonTagPush -Preckon.stage=final -b user-message/build.gradle.kts'
- cd $TRAVIS_BUILD_DIR/docs && npm i
- cd $TRAVIS_BUILD_DIR/docs && npm run gh-pages
deploy: &pages
provider: pages
github-token: "$GITHUB_TOKEN"
local-dir: docs/.vuepress/dist
# require gh-pages to be created manually first before deployment!
target_branch: gh-pages
skip_cleanup: true
keep-history: true
on:
branch: master
condition: "$TRAVIS_PULL_REQUEST = false"
before_cache:
- for i in `find ~/.gradle -name '*.lock' -type f` ; do rm -rfv $i ; done
cache:
directories:
- ./docs/node_modules
- ~/.local/daggerok
- ~/.gradle
- ~/.docker
- ~/.n*
packages: true
npm: true
if: tag IS blank