-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (86 loc) · 2.07 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
notifications:
email: false
git:
quiet: true
depth: 1
language: java
jdk: openjdk8
python: 3
service:
- docker
addons:
apt:
update: true
packages:
- sudo
- lsof
- wget
- bash
- curl
- jq
- docker-ce
- python3-dev
- python3-pip
- python3-six
- python3-setuptools
install: true
before_install:
- docker-compose -v
- export PATH=$HOME/.local/bin:$PATH
- pip3 install --user $(whoami) --upgrade pip >/dev/null # pip3 -> pip
- pip install --user $(whoami) --upgrade docker-compose httpie >/dev/null 2>&1
- http --version --debug
- docker-compose -v
#
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)
- stop_any 80 8001 8002 8080 5432
jobs:
include:
- stage: test
jdk: openjdk8
name: integration test
script:
- cd $TRAVIS_BUILD_DIR && ./mvnw
- java -jar $TRAVIS_BUILD_DIR/target/*.jar &
- wait_for 8080
- http :8080/greet
- http :8080/greet/Maksimko
- http put :8080/greet/greeting greeting=Привед
- http :8080/greet/Максимко
- stop_any 80 8080
- stage: test
jdk: openjdk11
name: integration test (openjdk11)
script:
- cd $TRAVIS_BUILD_DIR && ./mvnw
- java -jar $TRAVIS_BUILD_DIR/target/*.jar &
- wait_for 8080
- http :8080/greet
- http :8080/greet/Maksimko
- http put :8080/greet/greeting greeting=Привед
- http :8080/greet/Максимко
- stop_any 80 8080
- stage: test
jdk: openjdk11
name: versions update (openjdk11)
script: cd $TRAVIS_BUILD_DIR && ./mvnw versions:display-property-updates
- stage: test
jdk: openjdk11
name: docker (openjdk11)
script:
- cd $TRAVIS_BUILD_DIR
- docker build -t my-image .
- docker run --rm --name my-app -d -p 8080:8080 my-image:latest
- sleep 5s
- wait_for 8080
- http :8080/greet
- http :8080/greet/Maksimko
- http put :8080/greet/greeting greeting=Привед
- http :8080/greet/Максимко
- docker rm -f -v my-app
cache:
directories:
- ~/.docker
- ~/.m2
packages: true
pip: true