-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
108 lines (95 loc) · 2.61 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
sudo: required
dist: trusty
addons:
apt:
packages: &default_packages
- autoconf
- automake
- binutils-dev
- bison
- build-essential
- flex
- libboost-all-dev
- libc++-dev
- libcurl4-openssl-dev
- libdouble-conversion-dev
- libdwarf-dev
- libelf-dev
- libevent-dev
- libgflags-dev
- libgoogle-glog-dev
- libiberty-dev
- libjemalloc-dev
- liblz4-dev
- liblzma-dev
- libsnappy-dev
- libssl-dev
- libtool
- libunwind8-dev
- make
- pkg-config
- thrift-compiler
- tree
- zlib1g-dev
sources: &sources
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.5
- llvm-toolchain-precise-3.6
- llvm-toolchain-precise-3.7
- llvm-toolchain-precise-3.8
- llvm-toolchain-precise
language: cpp
cache:
directories:
- cmake-$CMAKE_VERSION-Linux-x86_64
python:
- "2.7"
env:
global:
- CMAKE_VERSION=3.8.2
matrix:
fast_finish: true
include:
-
os: osx
osx_image: xcode8
-
os: linux
addons:
apt:
sources: *sources
packages:
- *default_packages
- g++-5
env:
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
# -
# os: linux
# addons:
# apt:
# sources: *sources
# packages:
# - *default_packages
# - clang-3.8
# env:
# - MATRIX_EVAL="CC=clang-3.8 && CXX=clang++-3.8 && CMAKE_CXX_FLAGS=-stdlib=libc++"
before_script:
- .travis/install-dependencies.sh
before_install:
- eval "${MATRIX_EVAL}"
script:
- which $CC
- which $CXX
- $CC --version
- $CXX --version
- mkdir build && cd build && rm -rf *
- echo travis_fold:start:cmake CMake configure
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ../cmake-$CMAKE_VERSION-Linux-x86_64/bin/cmake .. ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cmake .. -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl ;fi
- echo travis_fold:end:cmake
- make && make test
after_failure:
- echo `pwd`
- cat externals/src/Folly/folly/config.log
- cat externals/src/Thrift/config.log
- tree -h