Skip to content

Commit

Permalink
Adds support for Travis CI
Browse files Browse the repository at this point in the history
Adds support for testing successful compilation (w/ and w/o apps) on
Travis using Linux, Windows, and Apple.
  • Loading branch information
jiverson002 committed Dec 1, 2020
1 parent da0f037 commit 1f48efd
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .travis.yml
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

0 comments on commit 1f48efd

Please sign in to comment.