Skip to content

Commit 1f48efd

Browse files
committed
Adds support for Travis CI
Adds support for testing successful compilation (w/ and w/o apps) on Travis using Linux, Windows, and Apple.
1 parent da0f037 commit 1f48efd

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# root key configurations (defaults).
2+
dist: xenial
3+
4+
# operating systems configurations.
5+
os:
6+
- linux
7+
- osx
8+
- windows
9+
10+
# language configurations.
11+
language: c
12+
13+
# env variable to toggle apps on and off.
14+
env:
15+
- CMAKE_OPTS=-DGKLIB_BUILD_APPS=ON
16+
- CMAKE_OPTS=-DGKLIB_BUILD_APPS=OFF
17+
18+
# invalid configurations to be explicitly included.
19+
jobs:
20+
include:
21+
- os: linux
22+
compiler: clang
23+
env: CMAKE_OPTS=-DGKLIB_BUILD_APPS=ON
24+
- os: linux
25+
compiler: clang
26+
env: CMAKE_OPTS=-DGKLIB_BUILD_APPS=OFF
27+
28+
# Override default script.
29+
script:
30+
- cmake ${CMAKE_OPTS} . && cmake --build . && ctest --output-on-failure

0 commit comments

Comments
 (0)