forked from graalvm/graal-js-jdk11-maven-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (25 loc) · 878 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
28
29
30
31
os:
- linux
- osx
osx_image: xcode9.3
language: java
jdk:
- openjdk8
- openjdk11
env:
- GRAALVM_VERSION="1.0.0-rc9"
install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then DOWNLOAD_OS_NAME="macos"; fi
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then DOWNLOAD_OS_NAME="linux"; fi
curl -LJ "https://github.com/oracle/graal/releases/download/vm-$GRAALVM_VERSION/graalvm-ce-$GRAALVM_VERSION-$DOWNLOAD_OS_NAME-amd64.tar.gz" --output graalvm.tar.gz
tar -xzf graalvm.tar.gz
script:
- mvn clean
- mvn package
- mvn exec:exec
- if [[ "$TRAVIS_JDK_VERSION" == "openjdk11" ]]; then mvn exec:exec@nograal; fi
- export JAVA_HOME="$(pwd)/graalvm-ce-$GRAALVM_VERSION" && if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export JAVA_HOME="$JAVA_HOME/Contents/Home"; fi
- mvn clean
- mvn package
- mvn exec:exec