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

Commit

Permalink
Set up CI testing. (#44)
Browse files Browse the repository at this point in the history
* Set up CI testing.

* Add osx to build matrix.

* Switch to run on xcode9.
  • Loading branch information
rnburn authored Dec 14, 2017
1 parent d901cf0 commit e57161e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
language: cpp
sudo: true
dist: trusty
matrix:
include:
- os: osx
osx_image: xcode9
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- cmake
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- cmake
env:
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"

before_install:
- eval "${MATRIX_EVAL}"
script:
- mkdir -p build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON ..
- make
- make test

0 comments on commit e57161e

Please sign in to comment.