diff --git a/.travis/travis_build.sh b/.travis/travis_build.sh index f3148e6c..8129a208 100755 --- a/.travis/travis_build.sh +++ b/.travis/travis_build.sh @@ -24,15 +24,20 @@ if [[ -n $TRAVIS_TAG ]]; then 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 +# Compile hyperion for cron +elif [[ $TRAVIS_EVENT_TYPE == 'cron' ]]; then + cmake -DPLATFORM=x86 -DCMAKE_BUILD_TYPE=Debug .. || exit 4 make -j$(nproc) || exit 5 + +# Compile for PR +else + cmake -DPLATFORM=x86-dev -DCMAKE_BUILD_TYPE=Debug .. || exit 6 + make -j$(nproc) || exit 7 fi # Build the package on Linux if [[ $TRAVIS_OS_NAME == 'linux' ]]; then - make -j$(nproc) package || exit 6 + make -j$(nproc) package || exit 8 fi