-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (50 loc) · 1.62 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
language: cpp
matrix:
include:
- os: osx
osx_image: xcode11.3
compiler: clang
install:
- pip install conan
- conan user
script:
- conan install . --build missing
- cmake .
- cmake --build .
- ctest
- os: linux
dist: bionic
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
env:
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
install:
- pip install --user conan
- conan user
script:
- conan install . -s compiler.libcxx=libstdc++11 --build missing
- cmake .
- cmake --build .
- ctest
before_install:
- eval "${MATRIX_EVAL}"
- os: windows
env:
- PATH=/c/Python38:/c/Python38/Scripts:$PATH
- MSBUILD_PATH="c:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin"
before_install:
- choco install python --version 3.8.2
- python -m pip install --upgrade pip
install:
- pip install conan
script:
- export PATH=$MSBUILD_PATH:$PATH
- conan install . -s compiler="Visual Studio" -s compiler.version=15 --build missing
- cmake -G "Visual Studio 15 2017 Win64" .
- cmake --build . --config Release
- ctest -C Release