-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (55 loc) · 1.22 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
notifications:
email: false
env:
global:
- TERM=dumb
language: java
jdk: openjdk8
service:
- docker
addons:
apt:
packages:
- bash
- curl
- docker-ce
install: true
before_install:
- sudo pip install docker-compose httpie >/dev/null 2>&1
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)
- stop_any 80 8080 3000
script:
- ./mvnw >/dev/null
- ./mvnw -P docker docker-compose:up
- http :8080/openapi
- http :8080/api/v1/hello
- http :8080/api/v1/hello/maven
- ./mvnw -P docker docker-compose:down
#
- ./mvnw clean compile quarkus:build
- java -jar ./target/*-runner.jar &
- wait_for 8080
- http :8080/openapi
- http :8080/api/v1/hello
- http :8080/api/v1/hello/maven
- stop_any 80 8080
#
- ./gradlew >/dev/null
- ./gradlew composeUp
- http :8080/openapi
- http :8080/api/v1/hello
- http :8080/api/v1/hello/gradle
- ./gradlew composeDown
#
- ./gradlew clean assemble quarkusBuild
- java -jar ./build/*-runner.jar &
- wait_for 8080
- http :8080/openapi
- http :8080/api/v1/hello
- http :8080/api/v1/hello/gradle
- stop_any 80 8080
cache:
directories:
- $HOME/.m2
- $HOME/.gradle
- $HOME/.docker