-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (37 loc) · 1.14 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
language: cpp
sudo: required
os: linux
dist: xenial
compiler:
- gcc
notifications:
email: false
cache:
directories:
- $HOME/.conan/data
- $HOME/.cache/pip
before_install:
# C++17
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
# C++17
- sudo apt-get install -qq gcc-7 g++-7
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 30 --slave /usr/bin/g++ g++ /usr/bin/g++-7
# GNU Scientific Library. There isn't a Conan package for GSL yet.
- sudo apt-get install gsl-bin libgsl0-dev
# Conan
- sudo apt-get install python3
- sudo apt-get install python3-pip
- pip3 install --upgrade setuptools
- pip3 install -r requirements.txt
- conan profile new default --detect # Generates default profile detecting GCC and sets old ABI
- conan profile update settings.compiler.libcxx=libstdc++11 default # Sets libcxx to C++11 ABI
- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
- conan install -if ./cmake-build-debug .
before_script:
- g++ --version
script:
- cmake -H. -Bcmake-build-debug
- cmake --build ./cmake-build-debug --target runTests -- -j3
- scripts/runAllTests