-
Notifications
You must be signed in to change notification settings - Fork 56
/
.travis.yml
69 lines (69 loc) · 3.04 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
#
# This file is deprecated now since TravaOpenJDK is moving to GitHub Actions
#
language: cpp
matrix:
include:
- os: osx
env: OS_BUILD=osx
- os: linux
env: OS_BUILD=linux FOLDER=x64
dist: xenial
arch: amd64
sudo: required
before_install:
- sudo apt-get install -y libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev
libcups2-dev libxrandr-dev libasound2 libasound2-dev
- os: linux
env: OS_BUILD=linux FOLDER=aarch64
dist: xenial
arch: arm64
sudo: required
before_install:
- sudo apt-get install -y libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev
libcups2-dev libxrandr-dev libasound2 libasound2-dev zip
- os: windows
env: OS_BUILD=windows
before_install:
- choco install cygwin
- C:\\tools\\cygwin\\cygwinsetup.exe -q -P make,unzip,automake,autoconf,zip
before_script:
- if [[ $OS_BUILD == "windows" ]]; then
git config --system core.longpaths true;
git config --global core.autocrlf false;
fi
- unset -v _JAVA_OPTIONS;
- git clone --depth 1 --branch travaopenjdk https://github.com/TravaOpenJDK/openjdk-build.git;
script:
- export SOURCE_JDK_TAG=dcevm-11.0.11+1
- export HSWAP_AGENT_DOWNLOAD_URL=https://github.com/HotswapProjects/HotswapAgent/releases/download/RELEASE-1.4.1/hotswap-agent-1.4.1.jar
- export HSWAP_AGENT_CORE_DOWNLOAD_URL=https://github.com/HotswapProjects/HotswapAgent/releases/download/RELEASE-1.4.1/hotswap-agent-core-1.4.1.jar
- export JDK_BOOT_DIR="$PWD/openjdk-build/jdk-11"
- mkdir -p "$JDK_BOOT_DIR"
- if [[ $OS_BUILD == "linux" ]]; then
wget -q -O - "https://api.adoptopenjdk.net/v3/binary/version/jdk-11.0.4%2B11/linux/${FOLDER}/jdk/hotspot/normal/adoptopenjdk?project=jdk" | tar xpzf - --strip-components=1 -C ${JDK_BOOT_DIR};
export JAVA_HOME="${JDK_BOOT_DIR}";
fi
- if [[ $OS_BUILD == "osx" ]]; then
wget -q -O - 'https://api.adoptopenjdk.net/v3/binary/version/jdk-11.0.4%2B11/mac/x64/jdk/hotspot/normal/adoptopenjdk?project=jdk' | tar xpzf - --strip-components=2 -C ${JDK_BOOT_DIR};
export JDK_BOOT_DIR=${JDK_BOOT_DIR}/Home;
export JAVA_HOME="${JDK_BOOT_DIR}";
fi
- echo ${SOURCE_JDK_TAG}
- if [[ $OS_BUILD == "linux" || $OS_BUILD == "osx" ]]; then
bash -c "cd openjdk-build && export LOG=info && ./makejdk-any-platform.sh --tag \"${SOURCE_JDK_TAG}\" --build-variant dcevm --branch dcevm11-jdk-11.0.11-adopt --disable-test-image
--jdk-boot-dir ${JDK_BOOT_DIR} --hswap-agent-download-url \"${HSWAP_AGENT_DOWNLOAD_URL}\" --hswap-agent-core-download-url \"${HSWAP_AGENT_CORE_DOWNLOAD_URL}\" --configure-args '-disable-warnings-as-errors'
--target-file-name java11-openjdk-dcevm-${TRAVIS_OS_NAME}-${TRAVIS_CPU_ARCH}.tar.gz jdk11u";
fi
- if [[ $OS_BUILD == "windows" ]]; then
powershell -Command "C:\tools\cygwin\bin\bash.exe -c './build_windows.sh'";
fi
deploy:
provider: releases
file_glob: true
file: openjdk-build/workspace/target/*
skip_cleanup: true
overwrite: true
on:
repo: TravaOpenJDK/trava-jdk-11-dcevm-newgen
tags: true