-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (43 loc) · 1.37 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
service:
- docker
env:
global:
- TERM=dumb
language: java
jdk: oraclejdk8
install: true
before_script:
- sudo apt update -y >/dev/null 2>&1 || true
- sudo apt install -y --no-install-recommends curl docker-ce python-pip >/dev/null 2>&1
- sudo pip install docker-compose httpie >/dev/null 2>&1
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)
script:
- bash ./gradlew war >/dev/null
- docker-compose -f docker-compose-gradle.yaml build
- docker-compose -f docker-compose-gradle.yaml up &
- wait_for 8080 5005 9990
- sleep 25
- http :8080/app data=ololo
- http :8080/app data=trololo
- http :8080/app data=olo
- http :8080/app data=gradle
- http :8080/app
- docker-compose -f docker-compose-gradle.yaml down -v
- stop_any 8080 5005 9990 8080 5005 9990
- docker rm -f -v $(docker ps -a|grep -v CONTAINER|awk '{print $1}') || true
- docker rmi -f $(docker images| grep -v daggerok|grep -v TAG|awk '{print $3}') || true
- docker volume rm $(docker volume ls|grep -v DRIVER|awk '{print $2}') || true
- bash ./mvnw -U >/dev/null
- docker-compose -f docker-compose-maven.yaml build
- docker-compose -f docker-compose-maven.yaml up &
- wait_for 8080 5005 9990
- sleep 20
- http :8080/app data=ololo
- http :8080/app data=trololo
- http :8080/app data=olo
- http :8080/app data=maven
- http :8080/app
cache:
directories:
- $HOME/.m2
- $HOME/.gradle