-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (55 loc) · 1.8 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
61
62
63
env:
global:
- TERM=dumb
- secure: 9s6JnyXJZ+/RyS4R3ZqZ0vIas2SYEzZX7s4SzbNAUHxeigCMRuFRH7S8DBzDUZrimfN4Ac4PElBPRu7wGjbdT4KtT2wZvYVkgT2z7iNqMHm6PfLY4Wap1PTG031rpo6zsjxTqI2Cku5fRGswl8FpOooreJoY65lO7KzZ3R2XD9Nscdff/oFlQuKSzijzoHCi8EBzhk5Uh0COI/w6B/cZjhYooHlfEweQ+P7/aqqstvbYy226NGwbzHyQTBXV61JUCatlSzwZCihvhBGcxNX79kTyn1Dz5DigOkQ6OfJQw52N7axtdXhVCFyGE1obxzA6tw5Jtz119UzA3cn0t8NWOaAFN1JiQ3LAgRX1iuX0+qzs/8eh5zIdJjaL4rSLSiU8pimu3dN3mUjCUbG6eiYDHf6pWtsAWbaIdMAFvX6w4FULMdg6E+bg/Kiy7AGGoX3whHBoVLnPjuWemouX3CDWbtft6TzmAngBz/x7PZkXW1RubfPlDl0Qo5KMXbXqaUHwoluBNQ/wjrLpPy2j2Dm/1DZ2oaHsmDJfVvQTgKHC2/jsJ2A2DsCaFG8B4GV8Y7QQTD+m9WqacJZbubgFF8Tf7MMYSzVA7SbTmZrrRSTNnFm6C2urBz3nbqF7HsK7l7bGjibG7/ZK13h89GTS8CJP9dkoq+59t9x27fZOxJZOV0Q=
language: java
jdk: oraclejdk8
addons:
apt:
update: true
packages:
- sudo
- lsof
- bash
- curl
- jq
- libxml2-utils
- python-pip
install: true
before_script:
- sudo pip install httpie >/dev/null 2>&1
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)
- stop_any 8080 80
script:
- ./gradlew >/dev/null
- bash ./build/libs/*.jar &
- wait_for 8080
- http :8080
- stop_any 8080 80
#
- ./mvnw >/dev/null
- bash ./target/*.jar &
- wait_for 8080
- http :8080
- stop_any 8080 80
before_deploy:
- ./mvnw -Pdocs
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
before_cache:
- sudo rm -rf $HOME/.gradle/caches/*/fileHashes/fileHashes.bin
- sudo rm -rf $HOME/.gradle/caches/*/fileHashes/fileHashes.lock
- sudo rm -rf $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.m2
- $HOME/.gradle
- $HOME/.docker