summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorRalph Giles <giles@thaumas.net>2017-06-16 14:19:09 -0700
committerRalph Giles <giles@thaumas.net>2017-06-16 21:17:02 -0700
commit892c43aa36ed4b3b4e4ef11485eaadf845eea2fb (patch)
tree38e3e491b3eace02806a8f2c8656a4704057bcd0 /.travis.yml
parentf253dd721ec2dc909b197faa770995ce7c6bfcfa (diff)
downloadogg-git-892c43aa36ed4b3b4e4ef11485eaadf845eea2fb.tar.gz
travis: Add cmake integration test.
Copied from the vorbis implementation by Marcel Metz.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml17
1 files changed, 14 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 1b3fba8..eccd06c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,16 @@
language: c
+
+env:
+ - BUILD=AUTOTOOLS
+ - BUILD=CMAKE
+
script:
- - ./autogen.sh
- - ./configure
- - make distcheck
+ - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then ./autogen.sh ; fi
+ - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then ./configure ; fi
+ - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then make distcheck ; fi
+ - if [[ "$BUILD" == "CMAKE" ]] ; then mkdir build ; fi
+ - if [[ "$BUILD" == "CMAKE" ]] ; then pushd build ; fi
+ - if [[ "$BUILD" == "CMAKE" ]] ; then cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/_inst .. ; fi
+ - if [[ "$BUILD" == "CMAKE" ]] ; then cmake --build . ; fi
+ - if [[ "$BUILD" == "CMAKE" ]] ; then cmake --build . --target install ; fi
+ - if [[ "$BUILD" == "CMAKE" ]] ; then popd ; fi