forked from jcefbuild/jcefbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
130 lines (117 loc) · 3.26 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
# https://config.travis-ci.com/explore
language: java
git:
depth: false
symlinks: true
branches:
only:
- master
- development
- /^v(?:\d+\.?){3,}(?<!\.)-.+chromium.+$/
matrix:
fast_finish: true
include:
- os: linux
dist: xenial
jdk: openjdk11
env:
- ARCH_DIST=linux64
- PYTHON_EXECUTABLE='/usr/bin/python3.7'
- CC=clang-10
- CXX=clang++-10
addons:
apt:
update: true
sources:
- deadsnakes
# https://docs.travis-ci.com/user/installing-dependencies#adding-apt-sources
- sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-10 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- ninja-build
- cmake
- clang-10
- python3.7
- lbzip2
- build-essential
- libgtk2.0-dev
- os: osx
osx_image: xcode12
compiler: clang
env: ARCH_DIST=macosx64
addons:
homebrew:
update: false
packages:
- ninja
- ant
- python3
- lbzip2
- gnu-tar
- cmake
taps: AdoptOpenJDK/openjdk
casks: adoptopenjdk11
- os: linux
services: docker
env:
- ARCH_DIST=linux32
- CC=clang-10
- CXX=clang++-10
install:
- docker build --rm --tag travis-build .
- |
docker run --volume "$PWD:$TRAVIS_BUILD_DIR" \
--workdir "$TRAVIS_BUILD_DIR" \
--env ARCH_DIST --env CC --env CXX --env TRAVIS_OS_NAME \
--name travis-build --detach --tty --interactive --rm travis-build
script:
- |
docker exec -e JCEF_DIR travis-build ./build.sh
docker container stop travis-build || travis_terminate $?
- os: linux
if: tag IS present
jdk: openjdk11
script:
- cd $JCEF_DIR/tools
- ./make_docs.sh
before_deploy:
- cd $TRAVIS_BUILD_DIR/packaging
- ARCH_DIST="/" ./gradlew --no-daemon -DBIN_ARTIFACT="$JCEF_DIR/out/" --quiet installDocsDist
deploy:
provider: pages
cleanup: false
keep_history: false
token: $GITHUB_RELEASE_TOKEN_PRIVATE
edge: true
local_dir: build/install/java-cef-build-docs
on:
tags: true
repo: jcefbuild/jcefbuild
before_install:
- |
if [ $TRAVIS_OS_NAME = 'osx' ]; then
# Ensure all homebrew packages are seen first
export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/python3/libexec/bin:$PATH"
fi
- unset _JAVA_OPTIONS # see https://github.com/travis-ci/travis-ci/issues/8408
before_script:
- export JCEF_DIR="$PWD/src"
- source ./prepare-build.sh
script:
- ./build.sh || travis_terminate $?
before_deploy:
- cd ./packaging && ../prepare-deploy.sh $JCEF_DIR/binary_distrib
after_deploy:
- cd ../
# for encryption, see https://docs.travis-ci.com/user/encryption-keys/
deploy:
provider: releases
edge: true
cleanup: false
token: $GITHUB_RELEASE_TOKEN_PRIVATE
file_glob: true
file: build/distributions/*
on:
tags: true
repo: jcefbuild/jcefbuild