-
Notifications
You must be signed in to change notification settings - Fork 56
/
.travis.yml
39 lines (32 loc) · 974 Bytes
/
.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
language: cpp
compiler:
- gcc
- clang
addons:
apt:
packages:
- clang-3.7
- g++-5
- gcc-5
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
install:
- if [ "$CC" == "clang" ]; then export CXX=clang++-3.7 CC=clang-3.7; fi
- if [ "$CC" == "gcc" ]; then export CXX=g++-5 CC=gcc-5; fi
- pip install --user conan && export PATH=$PATH:$HOME/.local/bin
- conan --version
- DEPS_DIR="${HOME}/deps"
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR}
- CMAKE_URL="http://www.cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz"
- mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
- export PATH=${DEPS_DIR}/cmake/bin:${PATH}
- cd ${TRAVIS_BUILD_DIR}
- cmake --version
- mkdir build && cd build
- cmake .. -DCTTI_BUILD_TESTS=ON
- cmake --build .
- ctest -V
script:
- cd ${TRAVIS_BUILD_DIR}
- conan test_package --build=outdated