Skip to content

Commit 7a1855a

Browse files
committed
build: add Travis-CL integration
1 parent 6e2bd61 commit 7a1855a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
dist: xenial
2+
sudo: required
3+
language: cpp
4+
5+
matrix:
6+
include:
7+
- os: linux
8+
addons:
9+
apt:
10+
sources:
11+
- ubuntu-toolchain-r-test
12+
packages:
13+
- gcc-9
14+
- g++-9
15+
env:
16+
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
17+
18+
- os: osx
19+
osx_image: xcode10.1
20+
env:
21+
- MATRIX_EVAL="PATH=$HOME/Library/Python/2.7/bin:$PATH && CC=clang && CXX=clang++"
22+
23+
before_install:
24+
- eval "${MATRIX_EVAL}"
25+
26+
install:
27+
- pip install --user -U pip
28+
- pip install --user cmake ninja conan pytest
29+
30+
script:
31+
- conan install -if build . --build=missing
32+
- cmake -GNinja -DCMAKE_BUILD_TYPE=Release -Bbuild .
33+
- cmake --build build
34+
- cmake --build build --target test

0 commit comments

Comments
 (0)