forked from berkus/dir_monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (33 loc) · 788 Bytes
/
.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
language: cpp
sudo: false
matrix:
include:
- os: linux
compiler: gcc
env:
- COMPILER=g++-5
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'boost-latest', 'george-edison55-precise-backports']
packages: ["g++-5", "cmake-data", "cmake", "libboost1.55-all-dev"]
- os: osx
osx_image: xcode7
compiler: clang
env: COMPILER=clang++
before_install:
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew install cmake boost
fi
before_script:
- rm -rf build/
- mkdir build
- cd build
script:
- cmake -DCMAKE_CXX_COMPILER=${COMPILER} -DBUILD_TESTING=ON ..
- cmake --build .
#TODO: add support for osx
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
ctest --verbose
fi