forked from oracle/graal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
158 lines (150 loc) · 5.43 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
language: java
python:
- "2.7"
addons:
apt:
packages:
- python-pip
- python-virtualenv
- wget
- mercurial
# Use Trusty to get enough RAM
sudo: required
dist: xenial
jdk:
- openjdk11
env:
global:
- JVMCI_VERSION="jvmci-20.3-b05"
- JDK8_UPDATE_VERSION="272"
- JDK8_UPDATE_VERSION_SUFFIX="+10"
- JDK11_VERSION="11.0.9+10"
matrix:
include:
- env: JDK="jdk8" GATE="style,fullbuild" PRIMARY="substratevm"
- env: JDK="jdk8" GATE="build,test" PRIMARY="compiler"
- env: JDK="jdk8" GATE="build,test,helloworld" PRIMARY="substratevm"
- env: JDK="jdk8" GATE="build,test,helloworld_debug" PRIMARY="substratevm"
- env: JDK="jdk8" GATE="build,bootstraplite" PRIMARY="compiler"
- env: JDK="jdk8" GATE="style,fullbuild,sulongBasic" PRIMARY="sulong"
addons:
apt:
packages:
- python-pip
- libc++1
- libc++abi1
- env: JDK="jdk8" GATE="build,sulong" PRIMARY="vm" DYNAMIC_IMPORTS="/sulong,/substratevm" DISABLE_POLYGLOT=true DISABLE_LIBPOLYGLOT=true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libc++1
- libc++abi1
- os: linux
env:
- JDK="jdk8" GATE="build,debuginfotest" PRIMARY="substratevm"
addons:
apt:
packages:
- gdb
- os: linux
env:
- JDK="jdk11" GATE="build,debuginfotest" PRIMARY="substratevm"
addons:
apt:
packages:
- gdb
- os: linux
env:
- JDK="jdk11" GATE="build,debuginfotest" PRIMARY="substratevm"
arch:
- arm64
addons:
apt:
packages:
- gdb
- env: JDK="jdk11" GATE="style,fullbuild" PRIMARY="compiler"
- env: JDK="jdk11" GATE="build,test" PRIMARY="compiler"
- env: JDK="jdk11" GATE="build,bootstraplite" PRIMARY="compiler"
- os: linux
arch: arm64
env: JDK="jdk11" GATE="fullbuild,test:1:100" PRIMARY="compiler"
- os: linux
arch: arm64
env: JDK="jdk11" GATE="build,test:0:1" PRIMARY="compiler"
- os: linux
arch: arm64
env: JDK="jdk11" GATE="build,bootstraplite" PRIMARY="compiler"
- os: linux
env: JDK="jdk11" WITHOUT_VCS=true
# GR-16977
# - env: JDK="jdk11" GATE="build,test,helloworld" PRIMARY="substratevm"
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 https://archive.eclipse.org/eclipse/downloads/drops4/R-4.14-201912100610/eclipse-SDK-4.14-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 https://archive.eclipse.org/eclipse/downloads/drops4/R-4.14-201912100610/ecj-4.14.jar -O ${JDT}
fi
fi
- |
if [ "${TRAVIS_CPU_ARCH}" == "arm64" ]
then
export TRAVIS_CPU_ARCH="aarch64"
fi
JDK_TAR=${TRAVIS_BUILD_DIR}/../jdk.tar.gz
if [ "${JDK}" == "jdk8" ]
then
wget https://github.com/graalvm/graal-jvmci-8/releases/download/${JVMCI_VERSION}/openjdk-8u${JDK8_UPDATE_VERSION}${JDK8_UPDATE_VERSION_SUFFIX}-${JVMCI_VERSION}-linux-${TRAVIS_CPU_ARCH}.tar.gz -O ${JDK_TAR}
fi
if [ "${JDK}" == "jdk11" ]
then
wget https://github.com/graalvm/labs-openjdk-11/releases/download/${JVMCI_VERSION}/labsjdk-ce-${JDK11_VERSION}-${JVMCI_VERSION}-linux-${TRAVIS_CPU_ARCH}.tar.gz -O ${JDK_TAR}
fi
mkdir -p ${TRAVIS_BUILD_DIR}/../jdk
tar -C ${TRAVIS_BUILD_DIR}/../jdk -xzf ${JDK_TAR} --strip-components=1
export JAVA_HOME=${TRAVIS_BUILD_DIR}/../jdk
script:
- echo ${JAVA_HOME}
- ${JAVA_HOME}/bin/java -version
- |
if [[ ${WITHOUT_VCS} ]]
then
rm -rf .git
mx --primary-suite-path ${TRAVIS_BUILD_DIR}/substratevm native-image --help
else
mx --primary-suite-path ${TRAVIS_BUILD_DIR}/${PRIMARY} --J @"-Xmx2g" --java-home=${JAVA_HOME} gate --strict-mode --tags ${GATE}
fi
after_failure:
- cat hs_err*
notifications:
# Send a notification of a build failure on the master branch to
# travis-ci channel in public GraalVM workspace
slack:
secure: RqC8efMebgYxxZeS63zTpNFIrJtgisOEjHNzlQBRDgIZ2JXcIoRL3xL6d3I+BoW8iGdOPJuNGC1WgDr8O4ZJOf5A32xZKpLU+aVR79Lq5LOezsoa8PCNXlZmxcc9oKFaM1a0cJGxLLg3F1wq9RUUHwfOMS8YuW7dmqFCtUOGmcIF1Rsal8vHyOqCYbiu7wxmUNmkqlJtXnztgQhLCGhd6ya0k6Dw8EVYoMWpHOTB6+9irNAp0BP0b1SvPQm9a5KzuASXSahapt/6CeCSrizN5RBKrMzVjcZhTarLm0Lt+3Ah7j1BQw2YBcDVYIEFUqABquXnuKb4+Hu6L8QRfmJzJ2w1cxC49WTEWWZu31gk2/0oSMsH58LovFG21ZHgQ/UZH1N7UYzS/rnHr2dzjZHaBIiWsRADoqSg9eNoz0ld2k8Up6k/T9YxUYN72+/TWKmRUDGF7gpkN097G1klaJb1MiLXDE5bvxbnH3+wVmfpzAVkE5Q0nfkZL53B5ymw1E8EtGvppcbnvHv0L3ccyRiX3iIgJcvINf+6sRXBqdB7HSZOEmRGiH7EsaUOdMxRhfLo1zA5xK+7k0fRBhViPJKEosflRkG7qhUNeqXDH6lrlCee5yqLoBsn0Xb6WDgCBQrVOSj2sHrvp0qO0UWKH8InDkhMPXddVq5RECnMjsusQ5g=
if: branch = master AND repo = oracle/graal
on_failure: always
on_success: never
on_pull_requests: false