forked from anti-social/jmorphy2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (30 loc) · 911 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
os: linux
dist: trusty
sudo: required
install:
- sudo apt-get install -y uidmap
- echo 'deb [arch=amd64 trusted=yes] https://ubuntu.zerogw.com vagga main' | sudo tee /etc/apt/sources.list.d/vagga.list
- sudo apt-get update
- sudo apt-get install vagga
- |
echo "cache-dir: ~/.cache/vagga" >> ~/.vagga.yaml
echo "ubuntu-mirror: http://mirrors.us.kernel.org/ubuntu/" >> ~/.vagga.yaml
echo "alpine-mirror: http://mirrors.gigenet.com/alpinelinux/" >> ~/.vagga.yaml
before_script:
- vagga _build java
script:
- |
GRADLE_ARGS="--no-daemon"
if [[ $TRAVIS_TAG == v* ]]; then
GRADLE_ARGS="$GRADLE_ARGS -Prelease=true"
fi
vagga assemble $GRADLE_ARGS
vagga check $GRADLE_ARGS
after_success:
- |
if [[ $TRAVIS_TAG == v*-es* ]]; then
vagga -e BINTRAY_USER -e BINTRAY_API_KEY gradle bintrayUpload -Prelease=true --info --no-daemon
fi
cache:
directories:
- $HOME/.cache/vagga/gradle-cache