-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
97 lines (73 loc) · 2.35 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
language: cpp
sudo: false
cache:
directories:
- $HOME/.local
- $HOME/.hunter
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- python3-pip
- g++-7
matrix:
include:
# Linux {
- os: linux
env: >
TOOLCHAIN=ninja-clang-cxx17
- os: linux
env: >
TOOLCHAIN=ninja-gcc-7-cxx17
# - os: linux
# env: >
# TOOLCHAIN=analyze-cxx17
# - os: linux
# env: >
# TOOLCHAIN=sanitize-address-cxx17
# - os: linux
# env: >
# TOOLCHAIN=sanitize-leak-cxx17
# - os: linux
# env: >
# TOOLCHAIN=sanitize-thread-cxx17
# }
# OSX {
# - os: osx
# osx_image: xcode9.4
# env: >
# TOOLCHAIN=osx-10-13-make-cxx14
- os: osx
osx_image: xcode9.4
env: >
TOOLCHAIN=osx-10-13-cxx14
# }
install:
# Info about OS
- uname -a
# Info about available disk space
- df -h $HOME
# Disable autoupdate
# * https://github.com/Homebrew/brew/blob/7d31a70373edae4d8e78d91a4cbc05324bebc3ba/Library/Homebrew/manpages/brew.1.md.erb#L202
- export HOMEBREW_NO_AUTO_UPDATE=1
# Install Python 3
- if [[ "`uname`" == "Darwin" ]]; then travis_retry brew upgrade python || echo "Ignoring failure..."; fi
- if [[ "`uname`" == "Darwin" ]]; then travis_retry brew install python3; fi
# Install Python package 'requests'
# 'easy_install3' is not installed by 'brew install python3' on OS X 10.9 Maverick
- if [[ "`uname`" == "Darwin" ]]; then pip3 install requests; fi
- if [[ "`uname`" == "Darwin" ]]; then pip3 install gitpython; fi
- if [[ "`uname`" == "Linux" ]]; then travis_retry pip3 install --user requests; fi
- if [[ "`uname`" == "Linux" ]]; then travis_retry pip3 install --user gitpython; fi
# Install latest Polly toolchains and scripts
- wget https://github.com/dvirtz/polly/archive/ninja-toolchains.zip
- unzip ninja-toolchains.zip
- POLLY_ROOT="`pwd`/polly-ninja-toolchains"
- export PATH="${POLLY_ROOT}/bin:${PATH}"
# Install dependencies (CMake, Android NDK)
- install-ci-dependencies.py --prune-archives
# Tune locations
- export PATH="`pwd`/_ci/cmake/bin:`pwd`/_ci/ninja_dir:${PATH}"
script:
- build.py --toolchain ${TOOLCHAIN} --config Release --fwd POST_BUILD_TESTS=FALSE --jobs 1 --test