Skip to content

Commit 041de20

Browse files
authored
Merge pull request #327 from abergeron/travis
Add simple build test on macOS and linux with travis.
2 parents b6554e2 + 0bcf298 commit 041de20

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+
language: c
2+
3+
matrix:
4+
include:
5+
- os: linux
6+
compiler: gcc
7+
- os: linux
8+
compiler: clang
9+
- os: osx
10+
compiler: clang
11+
12+
addons:
13+
apt:
14+
sources:
15+
- kalakris-cmake
16+
- george-edison55-precise-backports
17+
packages:
18+
- cmake
19+
- cmake-data
20+
21+
#before_install:
22+
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install cmake; fi
23+
24+
# Build with Debug and Release to flush out build problems
25+
script:
26+
- mkdir Debug
27+
- cd Debug
28+
- cmake .. -DCMAKE_BUILD_TYPE=Debug
29+
- make
30+
- cd ..
31+
- mkdir Release
32+
- cd Release
33+
- cmake .. -DCMAKE_BUILD_TYPE=Release
34+
- make

0 commit comments

Comments
 (0)