forked from bytedeco/gradle-javacpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (25 loc) · 796 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
dist: xenial
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.m2/repository/
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
language: java
jdk: openjdk8
before_install:
- >
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
export GRADLE_PUBLISH="publishToMavenLocal";
elif [[ "$TRAVIS_BRANCH" != "release" ]]; then
export GRADLE_PUBLISH="publish";
else
curl -L "https://drive.google.com/uc?export=download&id=$GDOWNLOAD_ID" -o $HOME/settings.tar.gz;
tar -xzf $HOME/settings.tar.gz -C $HOME;
export GNUPGHOME="$HOME/.gnupg/";
export GRADLE_PUBLISH="publish";
fi
script:
- gradle build $GRADLE_PUBLISH --info