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 7, 2020
1 parent 1e6a1fa commit e7f944d
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 e7f944d

Please sign in to comment.