-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
216 lines (216 loc) · 7.55 KB
/
.travis.yml
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
notifications:
email: false
git:
quiet: true
depth: false
language: java
service:
- docker
env:
global:
secure: u6Ls1bNCxh7Lc6IzPkkoZVaso7McGjEQ+9LNc4nNCB6raDwZkGiOXMq67ECc+8WUyoVdiIpgPgyzIbMy6w589NF91IkoLTlZy9Ut7HAhZo5WkqQlO2kAD1JiXMjET2ATCwOWoNQvJkMZA7sJBexxKpMxl5vTz/y2iuHkw6KlCuivnxheak5KeSp8r5vyTPI6ZJcOP+UgqWq60HOCa99l3L4vlaMOcfQ43+QBUV3cXTmow897qddM5dBMVUvfc23792HISJ3PMoOOfNG77wkSTdzXJSfe5rouW41e9gYU//Y/CwAnFvdXvK9UBaVxAMh6Ye4+kCvlyHw8kqZO47QwOqIjQ1thTQ6sgpSpzhgk9CfHR/U8uXX9Q9+xLbg2BmSEuw2whugfux4MwrviqNFLfbzKA8lFqfuj0IUzZrOlADfMimNtXdGhlmJgR2+X73mJEdaeMRMMbqaR05oX8/x4gNv6XL1cdSyO7cLrNakVO+v0+bDya9qmF37BVtVqtTumVnS7WICISg1ZLOlEv1p4RbR6MBOK3O69B9x/cvCsa2G7d3MyVVu76dhpVb+RVDOiPQx9B4UEkPvJ1/sWcpdygU4UAv64fhL+1CoFPPRyEQpy+4KbEIJRwNS6lRwsJlhGtIP6Xpm8md4Cnzo9wC4I6K8RaYYFaZdkrGqXmP4as1s=
python: 3.7
services: docker
addons:
apt:
update: true
packages:
- docker-ce
- python3-setuptools
- python3-pip
#- sudo
#- lsof
#- curl
- jq
install: true
before_install:
- |
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 8081 8082 8083 8084 8085 8086 8087 8088
#
- export PATH=$HOME/.local/bin:$PATH
- docker-compose version
- pip -V
- pip3 install --user --upgrade pip
- pip install --user --upgrade docker-compose httpie
- http --version --debug
- docker-compose version
- pip -V
#
- stop_any 80 8001 8002 8080 5432 9080 8009 8007 8005
jobs:
include:
- stage: test
jdk: openjdk8
name: openliberty-mp3-maven-zip
script:
- ./mvnw -f openliberty-mp3-maven-zip/ package
- ./mvnw -f openliberty-mp3-maven-zip/ liberty:start
- wait_for 9080
- http :9080/app1/
- http :9080/app1/api/v1/ | jq "."
- http :9080/app1/api/v1/props | jq "."
- http :/app1/api/v1/name | jq "."
- http :/app1/api/v1/os | jq "."
- ./mvnw -f openliberty-mp3-maven-zip/ liberty:stop liberty:clean-server
- stop_any 80 9080
#
- stage: test
jdk: openjdk11
name: openliberty-mp3-maven-zip in docker with fabric8 docker-maven-plugin
script:
- ./mvnw -f openliberty-mp3-maven-zip/ package docker:build docker:start
- http :/app1/
- http :/app1/api/v1/ | jq "."
- http :/app1/api/v1/props | jq "."
- http :/app1/api/v1/name | jq "."
- http :/app1/api/v1/os | jq "."
- ./mvnw -f openliberty-mp3-maven-zip/ docker:stop docker:remove
#
- stage: test
name: smallrye-next
jdk: openjdk8
script:
- cd $TRAVIS_BUILD_DIR && ./mvnw -f smallrye-next/pom.xml >/dev/null
- cd $TRAVIS_BUILD_DIR && ./mvnw -f smallrye-next/pom.xml versions:display-property-updates
- java -jar $TRAVIS_BUILD_DIR/smallrye-next/target/*-all.jar &
- wait_for 8080
- http :8080 message=hello
- http :8080 message=world
- http :8080 message=yeah
- stop_any 80 8080
#
- stage: test
name: smallrye-simple jdk11
jdk: openjdk11
script:
- cd $TRAVIS_BUILD_DIR && ./mvnw -f smallrye-simple/pom.xml >/dev/null
- cd $TRAVIS_BUILD_DIR && ./mvnw -f smallrye-simple/pom.xml versions:display-property-updates
- java -jar $TRAVIS_BUILD_DIR/smallrye-simple/target/*-all.jar
#
- stage: test
jdk: openjdk8
name: kumuluzee-mp12
script:
- ./mvnw -U -f ./kumuluzee-mp12/pom.xml >/dev/null
- java -jar ./kumuluzee-mp12/target/kumuluzee-mp12.jar &
- wait_for 8080
- http :8080
- http :8080/data/config/lookup
- http :8080/data/config/injected
- http :8080/data/metrics
- http :8080/data/resilience
- http :8080/health
- stop_any 80 8080
#
- stage: test
jdk: openjdk11
name: openliberty-maven-zip
script:
- ./mvnw -U -f openliberty-maven-zip/ package
- ./mvnw -U -f openliberty-maven-zip/ liberty:start
- wait_for 9080
- http :9080/app1/
- http :9080/app1/api/v1/ | jq "."
- http :9080/app1/api/v1/props | jq "."
- http :/app1/api/v1/name | jq "."
- http :/app1/api/v1/os | jq "."
- ./mvnw -U -f openliberty-maven-zip/ liberty:stop liberty:clean-server
- stop_any 80 9080
#
- stage: test
jdk: openjdk8
name: openliberty-maven-zip in docker
script:
- ./mvnw -U -f openliberty-maven-zip/pom.xml clean package
- docker build -t openliberty-maven-zip -f openliberty-maven-zip/Dockerfile openliberty-maven-zip
- docker run -d --name app1 --rm -p 80:9080 -p 443:9443 openliberty-maven-zip
- wait_healthy_docker_containers 1
- http :/app1/
- http :/app1/api/v1/ | jq "."
- http :/app1/api/v1/props | jq "."
- http :/app1/api/v1/name | jq "."
- http :/app1/api/v1/os | jq "."
- docker rm -f -v app1
- stop_any 80
#
- stage: test
jdk: openjdk8
name: openliberty-maven-jar
script:
- ./mvnw -U -f openliberty-maven-jar/pom.xml clean package
- java -jar openliberty-maven-jar/target/*.jar &
- wait_for 9080
- sleep 5s
- http :9080/
- http :9080/api/v1/ | jq '.'
- http :9080/api/v1/props | jq '.'
- http :9080/api/v1/properties | jq '.'
- stop_any 80 9080
#
- stage: test
jdk: openjdk8
name: penliberty-gradle-zip
script:
- ./gradlew -b openliberty-gradle-zip/build.gradle libertyStart
- wait_for 9080
- sleep 5s
- http :9080/app3/
- http :9080/app3/api/v1/ | jq '.'
- http :9080/app3/api/v1/hello | jq '.'
- ./gradlew -b openliberty-gradle-zip/build.gradle libertyStop
- stop_any 80 9080
#
- stage: test
jdk: openjdk8
name: smallrye-jar
script:
- ./mvnw -U -f ./smallrye-jar/pom.xml clean package exec:java -Dexec.mainClass=com.github.daggerok.App
- ./mvnw -U -f ./smallrye-jar/pom.xml clean package
- java -jar ./smallrye-jar/target/app4-*.jar
#
- ./gradlew -b ./smallrye-jar/build.gradle.kts fatJar
- java -jar ./smallrye-jar/build/libs/*-all.jar
#
- ./gradlew -b ./smallrye-jar/build.gradle.kts installDist
- bash ./smallrye-jar/build/install/app4/bin/app4
#
- stage: test
jdk: openjdk8
name: wildfly-swarm-mp12
script:
- ./mvnw -U -f ./wildfly-swarm-mp12/pom.xml >/dev/null
- ls -lah ./wildfly-swarm-mp12/target/ | grep jar
#
- stage: test
jdk: openjdk8
name: tomtribe-mp12
script:
- ./mvnw -U -f ./tomtribe-mp12/pom.xml >/dev/null
- stop_any 80
- docker pull openjdk:8u201-jdk-alpine3.9
- docker run --rm -d --name app -p 8080:8080 -v $(pwd)/tomtribe-mp12/target:/tmp/app openjdk:8u201-jdk-alpine3.9 ash -c "java -jar /tmp/app/*-exec.jar"
- docker logs -f -t app &
- wait_for 8080
- sleep 15s
- http :8080/data/health
- http :8080/data/openapi
- http :8080/data/petrics
- http :8080/data/config/lookup
- http :8080/data/hello
- http :8080/
- docker rm -f -v app
- stop_any 80
#
cache:
pip: true
packages: true
directories:
- ~/.local/daggerok
- ~/.docker
- ~/.gradle
- ~/.m2