forked from docopt/docopt.cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (65 loc) · 2.33 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
language: cpp
sudo: false # Use the new container infrastructure
matrix:
include:
- os: linux
env:
- COMPILER=g++-5 STDLIB=libc++
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'george-edison55-precise-backports']
packages: ["g++-5", "cmake-data", "cmake"]
- os: linux
env:
- COMPILER=g++-4.8 USE_BOOST_REGEX=ON
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'george-edison55-precise-backports', 'boost-latest']
packages: ["g++-4.8", "cmake-data", "cmake", "libboost-regex1.55-dev"]
- os: linux
env:
- COMPILER=clang++-3.6 STDLIB=libc++
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.6', 'george-edison55-precise-backports']
packages: ["clang-3.6", "cmake-data", "cmake"]
- os: linux
env:
- COMPILER=clang++-3.7 STDLIB=libc++
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7', 'george-edison55-precise-backports']
packages: ["clang-3.7", "cmake-data", "cmake"]
- os: osx
osx_image: xcode6.4
env:
- COMPILER=clang++ V='Apple LLVM 6.4'
- COMPILER=clang++ V='Apple LLVM 6.4' WITH_CPP14=true
- os: osx
osx_image: xcode7
env:
- COMPILER=clang++ V='Apple LLVM 7.0'
- COMPILER=clang++ V='Apple LLVM 7.0' WITH_CPP14=true
before_install:
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew rm --force cmake && brew install cmake
fi
- CMAKE_CXX_FLAGS+=" -Wall"
- if [[ "${WITH_CPP14}" == "true" ]]; then CMAKE_OPTIONS+=" -DCMAKE_CXX_STANDARD=14"; fi
- |
if [[ "${USE_BOOST_REGEX}" == "ON" ]]; then
CMAKE_OPTIONS+=" -DUSE_BOOST_REGEX=ON"
CMAKE_OPTIONS+=" -DBoost_REGEX_LIBRARY_DEBUG=/usr/lib/x86_64-linux-gnu/libboost_regex.so.1.55.0"
CMAKE_OPTIONS+=" -DBoost_REGEX_LIBRARY_RELEASE=/usr/lib/x86_64-linux-gnu/libboost_regex.so.1.55.0"
fi
- if [[ "${STDLIB}" == "libc++" ]]; then CMAKE_CXX_FLAGS+=" -stdlib=libc++"; fi
- ${COMPILER} --version
before_script:
- rm -rf build/
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER=${COMPILER} -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} -DWITH_TESTS=1 -DWITH_EXAMPLE=1 ${CMAKE_OPTIONS} ..
script:
- cmake --build .
- python run_tests