-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (51 loc) · 1.67 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
service:
- docker
env:
global:
- TERM=dumb
- secure: Sovqdj8H+Bb2oftIgxTAVn8MAq7GWNF4EyC8ymXJAl9f6tI+NDtks5EqNxOJF3ger3ut29dTL879dZLsk+Wo9SCs6ZqZ+GV9hzvQmsxIE6dhYdbicMaqvnccngsjmyIIEyngUmNAL5SHWkHHehd56xDTc4s/tlpn6hove2jR/Me5XTMIMKNCwSWYR28BsjPTaPlrcM843HfZScqRwSLK2yo1dJLWfJRKQKoBTOr12NCuKmrMoDyp8dPTaWT7ZwbQ8NKYO/MpeUToeUxFmE9Oek239PbB2QneSuOMdNAgceJV/7mxamSHxts3zZ8+ABVhJLujiiVqiZcb1UbbOALvGn+XkgBNEPXcIJsK0/RO8elrfwOGm1Vf222QOuhvxr44cZfAA+zNFYcr4JfDnMoUZUC8p/UtPJm6k9ndGua6wkMkpC7xeyRg/+T9j4nIuL1AafPcXvd54ayf6J+Lj+WhRaUzaQtEA7oU3C1jpSbxzoloVNPJWsW7ThaULaHt2YajU6u1Vj6yWAV3ggWM8mBlLKPfuvTbS0P4xwu8BedbcNOO0luQAnRD3i8NltNzyhz90684I387oGQ4cUJlSr6CfiuDrl2Am5OFus0ifS7u8lpkPW0NEJf4Cl7G+TJO7e6wbzrGrxUSQ1JQmHO4F+WRsUmERP/QyTJQZHbM8m5DYSg=
language: java
jdk: openjdk8
addons:
apt:
packages:
- bash
- tree
- docker-ce
- python-pip
install: true
before_script:
- 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
script:
- ./mvnw process-resources
- tree ./src/main/resources/public/
#
- ./mvnw package deploy
- bash ./target/*.jar &
- wait_for 8080
- http :8080
- stop_any 8080
#
- ./mvnw docker-compose:up -P docker
- sleep 35
- http :8080
after_script: ./mvnw docker-compose:down -P docker
before_deploy: ./mvnw process-resources
deploy:
provider: pages
skip-cleanup: true
# travis encrypt GITHUB_TOKEN=<your github repo token> --add
github-token: "$GITHUB_TOKEN"
keep-history: true
on:
branch: master
local-dir: target/generated-docs
target_branch: gh-pages
cache:
npm: true
packages: true
directories:
- $HOME/.m2
- $HOME/.docker