-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (52 loc) · 1.14 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
notifications:
email: false
git:
depth: false
quiet: true
service:
- docker
language: java
jdk: oraclejdk8
addons:
apt:
packages:
- sudo
- lsof
- wget
- bash
- curl
- jq
- libxml2-utils
- unzip
- python-pip
install: true
before_install:
- sudo pip install httpie >/dev/null 2>&1
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)
- stop_any 80 8080
script:
- ./mvnw
#
- java -jar target/*.jar &
- wait_for 9080
- sleep 15
- http :9080/liberty-archetype-webapp-example/
- http :9080/liberty-archetype-webapp-example/servlet
- stop_any 80 9080
#
- ./mvnw -Prestart &
- wait_for 9080
- sleep 15
- http :9080/liberty-archetype-webapp-example/
- http :9080/liberty-archetype-webapp-example/servlet
- stop_any 80 9080
#
- docker build -t app .
- docker run --rm -d -p 80:9080 -p 443:9443 --name run-app app
- docker logs -f -t run-app &
- wait_for 80 443
- sleep 15
- http :/liberty-archetype-webapp-example/
- http :/liberty-archetype-webapp-example/servlet
- docker rm -f -v run-app
- stop_any 80 9080