-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
38 lines (31 loc) · 922 Bytes
/
.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
group: edge
dist: trusty
language: java
jdk: oraclejdk8
install: true
before_install:
# install docker-compose
- sudo apt update
- sudo apt install -y python-pip curl jq libxml2-utils
- sudo pip install docker-compose
- sudo usermod -aG docker $(whoami)
# kill whatever punning on postgres / rabbitmq port
- sudo kill $(sudo lsof -t -i:5432) | true
- sudo kill $(sudo lsof -t -i:5672) | true
# gradle
- curl -s "https://get.sdkman.io" | bash
- source "$HOME/.sdkman/bin/sdkman-init.sh"
- sdk selfupdate
- touch "$HOME/.sdkman/etc/config"
- sed -i -e 's/^sdkman_auto_answer=false$/sdkman_auto_answer=true/g' "$HOME/.sdkman/etc/config"
- sdk use gradle
- sdk install gradle
- mkdir -p "$HOME/.sdkman/etc"
- sdk use gradle
- source "$HOME/.sdkman/bin/sdkman-init.sh"
script: gradle clean build
after_script: gradle --stop
cache:
directories:
- $HOME/.gradle/
- .gradle/