-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for testing successful compilation (w/ and w/o apps) on Travis using Linux, Windows, and Apple.
- Loading branch information
1 parent
2bf96a5
commit 9fdb16f
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# root key configurations (defaults). | ||
dist: xenial | ||
|
||
# operating systems configurations. | ||
os: | ||
- linux | ||
- osx | ||
- windows | ||
|
||
# language configurations. | ||
language: c | ||
|
||
# env variable to toggle apps on and off. | ||
env: | ||
- CMAKE_OPTS=-DGKLIB_BUILD_APPS=ON | ||
- CMAKE_OPTS=-DGKLIB_BUILD_APPS=OFF | ||
|
||
# invalid configurations to be explicitly included. | ||
jobs: | ||
include: | ||
- os: linux | ||
compiler: clang | ||
env: CMAKE_OPTS=-DGKLIB_BUILD_APPS=ON | ||
- os: linux | ||
compiler: clang | ||
env: CMAKE_OPTS=-DGKLIB_BUILD_APPS=OFF | ||
|
||
# Override default script. | ||
script: | ||
- cmake ${CMAKE_OPTS} . && cmake --build . && ctest --output-on-failure |