-
Notifications
You must be signed in to change notification settings - Fork 48
/
.travis.yml
68 lines (65 loc) · 2.08 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
language: java
python:
- "2.7"
addons:
apt:
packages:
- python-pip
- python-virtualenv
- wget
- mercurial
# Use Trusty to get enough RAM
sudo: required
dist: trusty
env:
global:
- MX_BINARY_SUITES="truffle"
matrix:
- JDK="jdk8" GATE="style,fullbuild"
- JDK="jdk8" GATE="build,test"
- JDK="jdk8" GATE="build,bootstraplite"
# - JDK="jdk9" GATE="build,test"
# - JDK="jdk9" GATE="build,bootstraplite"
install:
- |
export MX_PATH=$TRAVIS_BUILD_DIR/../mx
git clone https://github.com/graalvm/mx.git $MX_PATH
export PATH=$PATH:$MX_PATH
- |
if [[ $GATE == *style* ]]
then
virtualenv venv
source venv/bin/activate
pip install astroid==1.1.0
pip install pylint==1.1.0
export ECLIPSE_TAR=$TRAVIS_BUILD_DIR/../eclipse.tar.gz
wget http://lafo.ssw.uni-linz.ac.at/sulong-deps/eclipse-jdk8-linux-x86_64.tar.gz -O $ECLIPSE_TAR
tar -C $TRAVIS_BUILD_DIR/.. -xf $ECLIPSE_TAR
export ECLIPSE_EXE=$TRAVIS_BUILD_DIR/../eclipse/eclipse
fi
- |
if [[ $GATE == *fullbuild* ]]
then
export JDT=$MX_PATH/ecj.jar
wget http://archive.eclipse.org/eclipse/downloads/drops4/R-4.5.2-201602121500/ecj-4.5.2.jar -O $JDT
fi
- |
if [ "$JDK" == "jdk8" ]
then
JDK_TAR=$TRAVIS_BUILD_DIR/../jdk1.8.0_91-jvmci-0.20-linux-amd64.tar.gz
wget https://github.com/dougxc/openjdk8-jvmci-builder/releases/download/jvmci-0.20/jdk1.8.0_91-jvmci-0.20-linux-amd64.tar.gz -O $JDK_TAR
tar -C $TRAVIS_BUILD_DIR/.. -xzf $JDK_TAR
export JAVA_HOME=$TRAVIS_BUILD_DIR/../jdk1.8.0_91-jvmci-0.20
fi
- |
if [ "$JDK" == "jdk9" ]
then
JDK_TAR=$TRAVIS_BUILD_DIR/../jdk9-SNAPSHOT-release-linux-amd64.tar.gz
wget https://lafo.ssw.uni-linz.ac.at/slavefiles/jdk/jdk9-SNAPSHOT-release-linux-amd64.tar.gz -O $JDK_TAR
tar -C $TRAVIS_BUILD_DIR/.. -xf $JDK_TAR
export JAVA_HOME=$TRAVIS_BUILD_DIR/../jdk1.9.0
fi
script:
- mx --strict-compliance gate --strict-mode --tags $GATE
after_failure:
- cat hs_err*