-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (40 loc) · 1.19 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
language: cpp
dist: bionic
os: linux
compiler:
- gcc
- clang
addons:
apt:
packages:
- "python"
- "python-pip"
homebrew:
packages:
- conan
- cmake
update: true
jobs:
fast_finish: true
include:
- os: linux
- os: osx
osx_image: xcode11
# allow_failures:
# - os: osx
install:
- python --version
# Install conan
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then pip --version; pip install conan; fi
- which conan
- conan --version
- conan user
# install cmake 3.17
# recipe adopted from https://cliutils.gitlab.io/modern-cmake/chapters/intro/installing.html
# - if [ "$TRAVIS_OS_NAME" = "linux" ]; then mkdir -p cmake-3.15 && wget -qO- "https://cmake.org/files/v3.15/cmake-3.15.3-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C cmake-3.15; export PATH=$(pwd)/cmake-3.15/bin:$PATH; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then mkdir -p cmake-3.17 && wget -qO- "https://cmake.org/files/v3.17/cmake-3.17.0-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C cmake-3.17; export PATH=$(pwd)/cmake-3.17/bin:$PATH; fi
- which cmake
- cmake --version
script:
- cmake -Bbuild -H.
- CTEST_OUTPUT_ON_FAILURE=1 make -C build all test