forked from puniverse/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (40 loc) · 1.53 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
language: java
sudo: required
dist: trusty
group: edge
before_install:
- sudo add-apt-repository -y ppa:webupd8team/java
- sudo apt-get -y update
- sudo apt-get -y install oracle-java7-installer
- sudo apt-get -y install openjdk-7-jdk
- sudo apt-get -y install oracle-java8-installer
- sudo apt-get -y install openjdk-8-jdk
- sudo apt-get -y install oracle-java9-installer
- wget http://services.gradle.org/distributions/gradle-2.14.1-bin.zip
- unzip gradle-2.14.1-bin.zip
- export GRADLE_HOME=$PWD/gradle-2.14.1
- export PATH=$GRADLE_HOME/bin:$PATH
- if [[ ${TRAVIS_JDK_VERSION} == "oraclejdk7" ]]; then export GRADLE_OPTS="-XX:MaxPermSize=512m"; jdk_switcher use oraclejdk7; fi
- if [[ ${TRAVIS_JDK_VERSION} == "oraclejdk8" ]]; then jdk_switcher use oraclejdk8; fi
- export JAVA_VER=$(java -version 2>&1 | sed 's/java version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q')
- echo ${JAVA_HOME} ${JAVA_VER}
- gradle -version
install: GRADLE_OPTS="-XX:MaxPermSize=512m" gradle -q assemble
script: GRADLE_OPTS="-XX:MaxPermSize=512m" gradle -i check
jdk:
- oraclejdk7
- oraclejdk8
branches:
except:
- gh-pages
env:
global:
- secure: "NTxp50e11DMSJH1ApQbjlBxY4bcsLAGSw3mYzodOlceybMBh+hbpiAmqBpCZ9878wm5AZcPVq6ULzB47IrdfQG3Xn3SybwWLWpZRI3B0eaqoyhk71J5Uuu9rr+xXoD1C1q/TV1Z0Zf5unR1jz5DmUZ5En8yf4lZ4MI7gft6tDFI="
- TERM=dumb
- DOCS_BRANCH="0.7.0"
- GEN_APIDOCS="gradle javadoc"
after_success:
- sudo chmod a+x travis/post_build.sh
- ./travis/post_build.sh
notifications:
slack: puniverse:OsnbakHrYeTcLyalVgtUeI4F