Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit e57161e

Browse files
authored
Set up CI testing. (#44)
* Set up CI testing. * Add osx to build matrix. * Switch to run on xcode9.
1 parent d901cf0 commit e57161e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.travis.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
language: cpp
2+
sudo: true
3+
dist: trusty
4+
matrix:
5+
include:
6+
- os: osx
7+
osx_image: xcode9
8+
env:
9+
- MATRIX_EVAL="CC=clang && CXX=clang++"
10+
- os: linux
11+
addons:
12+
apt:
13+
sources:
14+
- ubuntu-toolchain-r-test
15+
packages:
16+
- g++-6
17+
- cmake
18+
env:
19+
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
20+
- os: linux
21+
addons:
22+
apt:
23+
sources:
24+
- ubuntu-toolchain-r-test
25+
packages:
26+
- g++-4.9
27+
- cmake
28+
env:
29+
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
30+
31+
before_install:
32+
- eval "${MATRIX_EVAL}"
33+
script:
34+
- mkdir -p build
35+
- cd build
36+
- cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON ..
37+
- make
38+
- make test

0 commit comments

Comments
 (0)