-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
66 lines (55 loc) · 1.04 KB
/
Copy path.travis.yml
File metadata and controls
66 lines (55 loc) · 1.04 KB
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
services:
- docker
language: java
jdk: openjdk8
python: 3
env:
SPRING_PROFILES_ACTIVE: dev
addons:
apt:
packages:
- jq
- bash
- curl
- sudo
- lsof
- unzip
- docker-ce
- python-pip
before_install:
- sudo pip install httpie docker-compose >/dev/null 2>&1
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)
- stop_any 5432 5672 27017 8080 80
script:
- (./gradlew clean assemble bootRun || true) &
- wait_for 8080
- http :8080
- http :8080/api
- stop_any 8080 80
- (./gradlew bootRun || true) &
- wait_for 8080
- http :8080
- http :8080/api
- stop_any 8080 80
- java -jar build/libs/*.jar &
- wait_for 8080
- http :8080
- http :8080/api
- stop_any 8080 80
- bash build/libs/*.jar &
- wait_for 8080
- http :8080
- http :8080/api
- stop_any 8080 80
after_script:
- ./gradlew --stop || true
- for item in $(find ~/.gradle -name "*.lock");
do sudo rm -rf $item ;
done
notifications:
email: false
cache:
directories:
- $HOME/.m2
- $HOME/.gradle
- $HOME/.docker