diff options
author | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2017-03-02 02:49:08 +0300 |
---|---|---|
committer | Marco Trevisan <mail@3v1n0.net> | 2017-03-02 03:12:04 +0300 |
commit | 1da1fb601ba77c3549cb7cbe94e853e3d49bfced (patch) | |
tree | a72c0738c5a0e78179ebd3965e44be09f503a3cd /scripts | |
parent | 0351ebe41740837aeae4c3b35fb23827ea86cb56 (diff) |
travis: build the snap for PRs in Debug mode
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/travis-build.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/travis-build.sh b/scripts/travis-build.sh index 289873e0d..77a1ad9f0 100755 --- a/scripts/travis-build.sh +++ b/scripts/travis-build.sh @@ -77,8 +77,15 @@ elif [ "$BUILD_TYPE" == "snap" ]; then docker_exec apt-get install -y cmake git-core snapcraft elif [ "$TRAVIS_BUILD_STEP" == "script" ]; then git clean -f - mkdir $BUILD_FOLDER - docker_exec cmake -B$BUILD_FOLDER -H. -DSNAP_BUILD_ONLY=ON + cmake_buld_type="Release" + + if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then + cmake_buld_type="Debug" + fi + + mkdir -p $BUILD_FOLDER + docker_exec cmake -B$BUILD_FOLDER -H. -DSNAP_BUILD_ONLY=ON \ + -DCMAKE_BUILD_TYPE=$cmake_buld_type make_target='snap' if [ -z "$TRAVIS_TAG" ] || [ "$TRAVIS_PULL_REQUEST" != "false" ]; then |