Skip to content

Commit

Permalink
Add Travis build config
Browse files Browse the repository at this point in the history
  • Loading branch information
faheel committed Dec 21, 2017
1 parent e430cf9 commit 98740b7
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
language: cpp
sudo: true

matrix:
include:
# Linux g++ build
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"

# Linux clang++ build
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-4.0
packages:
- clang-4.0
env:
- MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0"

# OSX g++ build
- os: osx
compiler: gcc

# OSX clang++ build
- os: osx
compiler: clang

before_install:
- eval "${MATRIX_EVAL}"

install: true

script:
- make test

0 comments on commit 98740b7

Please sign in to comment.