From a7da6cb3d986ae25a8aec10020c9636a8be7f98d Mon Sep 17 00:00:00 2001 From: brindosch Date: Tue, 30 Aug 2016 23:10:10 +0200 Subject: [PATCH] . --- .travis.yml | 1 - .travis/travis_build.sh | 20 ++++++++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 570a81ed..36cd47e7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,6 @@ cache: - $HOME/brew-cache notifications: email: false - slack: hyperiondevteam:JHOhorlTVgcYKwT6Tj1nnGou language: cpp matrix: include: diff --git a/.travis/travis_build.sh b/.travis/travis_build.sh index 0c84cf20..f4a3f055 100755 --- a/.travis/travis_build.sh +++ b/.travis/travis_build.sh @@ -15,18 +15,26 @@ else procs=4 fi - -# Compile hyperion - +# compile prepare mkdir build || exit 1 cd build -cmake -DPLATFORM=x86-dev -DCMAKE_BUILD_TYPE=Debug .. || exit 2 -make -j$(nproc) || exit 3 +# Compile hyperion for tags +if [[ -n $TRAVIS_TAG ]] + echo "This is a tag build" + exit 10 + cmake -DPLATFORM=x86 -DCMAKE_BUILD_TYPE=Release .. || exit 2 + make -j$(nproc) || exit 3 +# Compile hyperion for cron or PR +else + cmake -DPLATFORM=x86-dev -DCMAKE_BUILD_TYPE=Debug .. || exit 4 + make -j$(nproc) || exit 5 +fi + # Build the package on Linux if [[ $TRAVIS_OS_NAME == 'linux' ]]; then - make -j$(nproc) package || exit 4 + make -j$(nproc) package || exit 6 fi