forked from thejohnfreeman/autocheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (76 loc) · 1.96 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
sudo: required
language: cpp
.xenial: &xenial
os: linux
dist: xenial
addons:
apt:
sources:
- deadsnakes
packages:
- python3.6-dev
before_install:
- curl https://bootstrap.pypa.io/get-pip.py | sudo python3.6
matrix:
include:
# We need to use Ubuntu Xenial to upgrade pip.
- <<: *xenial
compiler: clang
env:
- BUILD_TYPE=Debug
- CXXFLAGS='-D_GLIBCXX_USE_CXX11_ABI=1'
- LIBCXX=libstdc++11
- <<: *xenial
compiler: clang
env:
- BUILD_TYPE=Release
- CXXFLAGS='-D_GLIBCXX_USE_CXX11_ABI=1'
- LIBCXX=libstdc++11
- <<: *xenial
compiler: gcc
env:
- BUILD_TYPE=Debug
- CXXFLAGS='-D_GLIBCXX_USE_CXX11_ABI=1'
- LIBCXX=libstdc++11
- <<: *xenial
compiler: gcc
env:
- BUILD_TYPE=Release
- CXXFLAGS='-D_GLIBCXX_USE_CXX11_ABI=1'
- LIBCXX=libstdc++11
- os: osx
compiler: clang
env:
- BUILD_TYPE=Debug
- LIBCXX=libc++
- os: osx
compiler: clang
env:
- BUILD_TYPE=Release
- LIBCXX=libc++
# GCC on OSX is just a wrapper for Clang.
install:
# The root environment on Travis does not have cmake on its PATH.
# https://github.com/travis-ci/travis-ci/issues/9113#issuecomment-366448032
- sudo pip install --upgrade pip
- sudo pip install --upgrade conan --ignore-installed
- conan user
- conan --version
- conan remote add jfreeman https://api.bintray.com/conan/jfreeman/jfreeman
- conan remote list
script:
- mkdir build
- cd build
- export CMAKE_BUILD_PARALLEL_LEVEL=
- conan install
--setting "compiler.libcxx=$LIBCXX"
--setting "build_type=$BUILD_TYPE"
--build missing
..
- cmake
-DCMAKE_BUILD_TYPE=${BUILD_TYPE}
"-DCMAKE_TOOLCHAIN_FILE=${PWD}/conan_paths.cmake"
..
- cmake --build . --config ${BUILD_TYPE}
- export CTEST_PARALLEL_LEVEL=
- ctest --build-config ${BUILD_TYPE} --verbose