-
Notifications
You must be signed in to change notification settings - Fork 112
/
.travis.yml
43 lines (43 loc) · 1.11 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
sudo: false
git:
depth: 1
language: java
jdk:
- oraclejdk8
os:
- linux
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/2.*
- rm -rf $HOME/.gradle/caches/3.0/plugin-resolution/cache.properties*
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
install:
- chmod a+rx host/gradlew
- mkdir -p ~/.gradle/
# - echo "org.gradle.daemon=true" >> ~/.gradle/gradle.properties
- cd host
- ./gradlew assemble
script:
- ./gradlew --stacktrace check
before_deploy:
- ./gradlew dist
- export RELEASE_PKG_FILE=$(ls *.zip | grep -v 298 | head -1)
- echo "deploying $RELEASE_PKG_FILE"
deploy:
- provider: releases
skip_cleanup: true
prerelease: false
api_key: "$GITHUB_ACCESS_TOKEN"
file_glob: true
file: "${RELEASE_PKG_FILE}"
on:
tags: true
condition: -n "$GITHUB_ACCESS_TOKEN"
after_deploy:
- gem install travis
- curl -LO https://raw.github.com/stephanmg/travis-dependent-builds/master/trigger.sh
- chmod +x trigger.sh
- ./trigger.sh $PI_REPO_USER $PI_REPO_NAME $PI_REPO_BRANCH $GITHUB_ACCESS_TOKEN