forked from nodenative/nodenative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (77 loc) · 2.03 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
# a good example is: https://github.com/boostorg/hana/blob/master/.travis.yml
language: cpp
compiler:
- clang
- gcc
matrix:
exclude:
- os: osx
- os: linux
include:
# TODO: add it back with libc++
#- os: linux
# sudo: required
# dist: trusty
# compiler: clang
- os: linux
sudo: required
dist: trusty
compiler: gcc
- os: osx
compiler: clang
osx_image: xcode7
- os: osx
compiler: clang
osx_image: xcode7.1
before_install:
- echo $TRAVIS_OS_NAME
- echo $LANG
- echo $LC_ALL
- echo $CXX
- which $CXX
- which $CC
- $CXX --version
- python --version
- git submodule update --init
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CXX" == "clang++" ]] ; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
sudo apt-get -qq update;
sudo apt-get -qq install -y ninja-build;
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -;
echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty main" | sudo tee -a /etc/apt/sources.list;
echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main" | sudo tee -a /etc/apt/sources.list;
sudo apt-get -qq update;
sudo apt-get -qq install -y clang-3.7 lldb-3.7 libc++-dev libc++abi-dev;
export CXX=clang++-3.7;
export CC=clang-3.7;
export CXXFLAGS="-stdlib=libc++";
export LDFLAGS="-stdlib=libc++";
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CXX" == "g++" ]] ; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
sudo apt-get -qq update;
sudo apt-get -qq install -y ninja-build;
sudo apt-get -qq install -y g++-5;
export CXX=g++-5;
export CC=gcc-5;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
brew install ninja;
fi
- $CXX --version
- which $CXX
- which $CC
before_script: ls
script:
- python build.py -Dasan=1 -Dlsan=1
- ./out/Debug/test
- ./out/Release/test
branches:
only:
- master
env:
global:
- LANG="en_US.UTF-8"
os:
- linux
- osx