forked from gluonhq/substrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (68 loc) · 3.17 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
language: java
sudo: false
jdk: openjdk11
addons:
apt:
package: &global_deps
- ksh
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
matrix:
fast_finish: true
include:
- os: linux
dist: bionic
services:
- xvfb
addons:
apt:
packages:
- *global_deps
- at-spi2-core
- build-essential
- libgl-dev
- libgtk-3-dev
- libxtst-dev
- libavcodec-dev
- libavformat-dev
- libasound2-dev
before_script:
- mkdir -p $HOME/graalvm && cd $HOME/graalvm
- curl -i -u "gluonteam:$GLUONTEAM_PAT" https://api.github.com/repos/graalvm/graalvm-ce-dev-builds/releases > releases.json
- export GRAALVM_GITHUB_LINUX_AMD64_DOWNLOAD_URL=$(cat releases.json | grep browser_download_url | grep graalvm-ce-java11-linux-amd64-20.3 | head -n 1 | sed -e 's/.*\(https.*\)".*/\1/g')
- wget $GRAALVM_GITHUB_LINUX_AMD64_DOWNLOAD_URL
- tar -xzvf graalvm-ce-java11-linux-amd64-20.3.0-dev.tar.gz && cd $TRAVIS_BUILD_DIR
- mkdir -p $HOME/javafx-static-libs-linux && cd $HOME/javafx-static-libs-linux
- wget https://download2.gluonhq.com/substrate/javafxstaticsdk/openjfx-15-latest-linux-x86_64-static.zip
- unzip openjfx-15-latest-linux-x86_64-static.zip && cd $TRAVIS_BUILD_DIR
- export GRAALVM_HOME=$HOME/graalvm/graalvm-ce-java11-20.3.0-dev
- export JAVAFX_STATIC_SDK=$HOME/javafx-static-libs-linux/sdk
- export JAVA_HOME=$GRAALVM_HOME
- os: osx
osx_image: xcode10.2
before_script:
- mkdir -p $HOME/graalvm && cd $HOME/graalvm
- which curl
- curl -i -u "gluonteam:$GLUONTEAM_PAT" https://api.github.com/repos/graalvm/graalvm-ce-dev-builds/releases > releases.json
- export GRAALVM_GITHUB_DARWIN_AMD64_DOWNLOAD_URL=$(cat releases.json | grep browser_download_url | grep graalvm-ce-java11-darwin-amd64-20.3 | head -n 1 | sed -e 's/.*\(https.*\)".*/\1/g')
- wget ${GRAALVM_GITHUB_DARWIN_AMD64_DOWNLOAD_URL}
- tar -xzvf graalvm-ce-java11-darwin-amd64-20.3.0-dev.tar.gz && cd $TRAVIS_BUILD_DIR
- mkdir -p $HOME/javafx-static-libs-darwin && cd $HOME/javafx-static-libs-darwin
- wget https://download2.gluonhq.com/substrate/javafxstaticsdk/openjfx-15-latest-darwin-x86_64-static.zip
- unzip openjfx-15-latest-darwin-x86_64-static.zip && cd $TRAVIS_BUILD_DIR
- mkdir -p $HOME/javafx-static-libs-ios && cd $HOME/javafx-static-libs-ios
- wget https://download2.gluonhq.com/substrate/javafxstaticsdk/openjfx-15-latest-ios-arm64-static.zip
- unzip openjfx-15-latest-ios-arm64-static.zip && cd $TRAVIS_BUILD_DIR
- export GRAALVM_HOME=$HOME/graalvm/graalvm-ce-java11-20.3.0-dev/Contents/Home
- export JAVAFX_STATIC_SDK=$HOME/javafx-static-libs-darwin/sdk
- export JAVAFX_STATIC_SDK_IOS=$HOME/javafx-static-libs-ios/sdk
- export JAVA_HOME=$GRAALVM_HOME
before_script:
- echo $JAVA_OPTS
- sh ./gradlew --version
install: true
script: ./gradlew --info build