forked from oracle/graal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
109 lines (101 loc) · 3.39 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
language: java
python:
- "2.7"
addons:
apt:
packages:
- python-pip
- python-virtualenv
- wget
- mercurial
# Use Trusty to get enough RAM
sudo: required
dist: trusty
jdk:
- oraclejdk11
env:
global:
- JVMCI_VERSION="jvmci-0.51"
- JDK8_UPDATE_VERSION="192"
matrix:
include:
- env: JDK="jdk8" GATE="style,fullbuild" PRIMARY="compiler"
- env: JDK="jdk8" GATE="build,test" PRIMARY="compiler"
- env: JDK="jdk8" GATE="build,test" PRIMARY="substratevm"
- env: JDK="jdk8" GATE="build,bootstraplite" PRIMARY="compiler"
- env: JDK="jdk8" GATE="style,fullbuild,sulongBasic" PRIMARY="sulong" LLVM_VERSION="3.8"
addons:
apt:
packages:
- python-pip
- clang-3.8
- llvm-3.8
- clang-format-3.8
- libc++1
- libc++-dev
- env: JDK="jdk8" GATE="build,sulong" PRIMARY="vm" DYNAMIC_IMPORTS="/sulong,/substratevm" LLVM_VERSION="6.0" DISABLE_POLYGLOT=true DISABLE_LIBPOLYGLOT=true NATIVE_IMAGE_TESTING=true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- clang-6.0
- llvm-6.0
- libc++1
- libc++-dev
- env: JDK="jdk11" GATE="style,fullbuild" PRIMARY="compiler"
- env: JDK="jdk11" GATE="build,test" PRIMARY="compiler"
- env: JDK="jdk11" GATE="build,bootstraplite" PRIMARY="compiler"
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://archive.eclipse.org/eclipse/downloads/drops4/R-4.5.2-201602121500/eclipse-SDK-4.5.2-linux-gtk-x86_64.tar.gz -O ${ECLIPSE_TAR}
tar -C ${TRAVIS_BUILD_DIR}/.. -xzf ${ECLIPSE_TAR}
export ECLIPSE_EXE=${TRAVIS_BUILD_DIR}/../eclipse/eclipse
# the style gate needs the full commit history for checking copyright years
git fetch --unshallow
fi
- |
if [[ ${GATE} == *fullbuild* ]]
then
# Only test JDT on JDK8
if [ "${JDK}" == "jdk8" ]
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
fi
- |
if [ "${JDK}" == "jdk8" ]
then
JDK_TAR=${TRAVIS_BUILD_DIR}/../jdk.tar.gz
wget https://github.com/graalvm/openjdk8-jvmci-builder/releases/download/${JVMCI_VERSION}/openjdk-8u${JDK8_UPDATE_VERSION}-${JVMCI_VERSION}-linux-amd64.tar.gz -O ${JDK_TAR}
tar -C ${TRAVIS_BUILD_DIR}/.. -xzf ${JDK_TAR}
export JAVA_HOME=${TRAVIS_BUILD_DIR}/../openjdk1.8.0_${JDK8_UPDATE_VERSION}-${JVMCI_VERSION}
fi
- |
if [ "${LLVM_VERSION}" != "" ]
then
export CLANG=clang-$LLVM_VERSION
export CLANGXX=clang++-$LLVM_VERSION
export OPT=opt-$LLVM_VERSION
export LLVM_AS=llvm-as-$LLVM_VERSION
export LLVM_LINK=llvm-link-$LLVM_VERSION
fi
script:
- echo ${JAVA_HOME}
- ${JAVA_HOME}/bin/java -version
- mx --primary-suite-path ${TRAVIS_BUILD_DIR}/${PRIMARY} --java-home=${JAVA_HOME} gate --strict-mode --tags ${GATE}
after_failure:
- cat hs_err*