diff options
author | evpobr <evpobr@gmail.com> | 2018-09-24 10:20:47 +0500 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2019-04-23 12:05:50 +1000 |
commit | 6ccfcc2dce48c0d430b45064d0e13c962a64c42f (patch) | |
tree | 40aae6818b8c5ac183401a0a167adfab92bd73d1 /.travis.yml | |
parent | f7dadaaf75634289f7ead64ed1802b627d761ee3 (diff) | |
download | ogg-git-6ccfcc2dce48c0d430b45064d0e13c962a64c42f.tar.gz |
Add CMake config-file package generation
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 43a3b1a..aa5d0a7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,8 @@ script: - 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 -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DCPACK_PACKAGE_CONTACT="Xiph.Org Foundation" .. ; fi - if [[ "$BUILD" == "CMAKE" ]] ; then cmake --build . ; fi - - if [[ "$BUILD" == "CMAKE" ]] ; then cmake --build . --target install ; fi + - if [[ "$BUILD" == "CMAKE" ]] ; then ctest ; fi + - if [[ "$BUILD" == "CMAKE" ]] ; then cpack -G DEB ; fi - if [[ "$BUILD" == "CMAKE" ]] ; then popd ; fi |