-
Notifications
You must be signed in to change notification settings - Fork 469
/
.travis.yml
69 lines (56 loc) · 1.64 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
# Copyright Lewis Baker 2017
#
# Distributed under MIT license.
# See LICENSE.txt file for details.
language: cpp
os: linux
dist: bionic
git:
submodules: true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- python2.7
- clang-11
- lld-11
- ninja-build
cache:
directories:
- ${TOOLS_DIR}/cmake-${CMAKE_VERSION}
compiler:
- clang
env:
global:
- TOOLS_DIR=${TRAVIS_BUILD_DIR}/tools
- LLVM_INSTALL_PREFIX=${TOOLS_DIR}/llvm
- CMAKE_VERSION="3.9.1"
matrix:
include:
- env: RELEASE=debug ARCH=x64 CLANG_VERSION=11
- env: RELEASE=optimised ARCH=x64 CLANG_VERSION=11
before_install:
- export CC="$CC-$CLANG_VERSION"
- export CXX="$CXX-$CLANG_VERSION"
- |
if [ ! -f "${TOOLS_DIR}/cmake-${CMAKE_VERSION}/cached" ]; then
CMAKE_URL="https://cmake.org/files/v3.9/cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz"
mkdir -p "${TOOLS_DIR}/cmake-${CMAKE_VERSION}"
travis_retry wget --no-check-certificate --quiet -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C "${TOOLS_DIR}/cmake-${CMAKE_VERSION}"
touch "${TOOLS_DIR}/cmake-${CMAKE_VERSION}/cached"
else
echo "Using cached CMake version ${CMAKE_VERSION}"
fi
export PATH="${TOOLS_DIR}/cmake-${CMAKE_VERSION}/bin:$PATH"
install:
- ./build-libcxx.sh
- export LD_LIBRARY_PATH="${LLVM_INSTALL_PREFIX}/lib"
before_script:
- source ./init.sh
script:
- cake architecture=$ARCH release=$RELEASE --clang-executable="$CC" --libcxx-install-prefix="${LLVM_INSTALL_PREFIX}"
notifications:
email: false