From 7c78ab63ec6316a702212291f7c62f38c5e7ba89 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Wed, 7 Aug 2019 14:27:45 -0700 Subject: [PATCH] Only call cpack on linux travis builds. The DEB package generator isn't available in the cmake version provided by travis-ci.org, so only skip invoking it there. Unbreaks cmake build tests after adding macOS coverage. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 40b4dc4..ef525aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,5 +24,5 @@ script: - 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 ctest ; fi - - if [[ "$BUILD" == "CMAKE" ]] ; then cpack -G DEB ; fi + - if [[ "$BUILD" == "CMAKE" && "$TRAVIS_OS_NAME" == "linux" ]] ; then cpack -G DEB ; fi - if [[ "$BUILD" == "CMAKE" ]] ; then popd ; fi -- GitLab