/
.travis.yml
66 lines (66 loc) · 1.85 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
notifications:
email: false
git:
quiet: true
depth: false
language: java
jdk: openjdk11
python: 3.7
os: linux
arch: amd64
service: docker
addons:
apt:
update: true
packages:
- python3-pip
- curl
- jq
install: true
before_install:
- sudo pip3 install --upgrade pip setuptools
- sudo pip install --upgrade httpie
- |
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 ~/.local/daggerok/bash-functions/master/main.bash
- stop_any 80 8080
jobs:
include:
- stage: test
name: bmuschko docker-spring-boot-application
script:
- cd $TRAVIS_BUILD_DIR && ./gradlew -Pdocker
- cd $TRAVIS_BUILD_DIR && ./gradlew dockerRun &
#- sleep 25s # wait_for 8080
- while [[ ! `curl -sSf http://127.0.0.1:8080/actuator/health || return 1` ]] ; do echo -n '...' ; sleep 1s ; done
- http :8080
- http :8080/not-found
- http :8080/api/message
- curl localhost:8080/api/messages &
- sleep 3s
#- http post :8080/actuator/shutdown
- cd $TRAVIS_BUILD_DIR && ./gradlew dockerRm
- stage: test
name: webflux
script:
- cd $TRAVIS_BUILD_DIR && ./gradlew
- java -Dspring.profiles.active=webflux -jar $TRAVIS_BUILD_DIR/build/libs/*.jar &
- wait_for 8080
- http :8080
- http :8080/not-found
- http :8080/api/message
- curl localhost:8080/api/messages &
- sleep 3s
- http post :8080/actuator/shutdown
cache:
pip: true
packages: true
directories:
- ./ui/node_modules
- ~/.local/daggerok
- ~/.docker
- ~/.gradle
- ~/.n*