|
@@ -40,6 +40,8 @@ matrix:
|
|
compiler: clang
|
|
compiler: clang
|
|
# disable homebrew auto update which takes a lot of time
|
|
# disable homebrew auto update which takes a lot of time
|
|
env: HOMEBREW_NO_AUTO_UPDATE=1
|
|
env: HOMEBREW_NO_AUTO_UPDATE=1
|
|
|
|
+ # Fixes bug 'shell_session_update: command not found' on coverity_scan branch, https://github.com/travis-ci/travis-ci/issues/6737
|
|
|
|
+ osx_image: xcode8.1
|
|
cache:
|
|
cache:
|
|
directories:
|
|
directories:
|
|
- $HOME/Library/Caches/Homebrew
|
|
- $HOME/Library/Caches/Homebrew
|
|
@@ -87,21 +89,26 @@ cache:
|
|
|
|
|
|
# combine all the commands into one single command. See https://github.com/travis-ci/travis-ci/issues/1066
|
|
# combine all the commands into one single command. See https://github.com/travis-ci/travis-ci/issues/1066
|
|
before_install: |
|
|
before_install: |
|
|
- set -e
|
|
|
|
- # Exit if on coverity_scan branch and not first build
|
|
|
|
|
|
+ # Exit travis if on coverity_scan branch and not first build
|
|
test $TRAVIS_BRANCH != coverity_scan -o ${TRAVIS_JOB_NUMBER##*.} = 1 || exit 0
|
|
test $TRAVIS_BRANCH != coverity_scan -o ${TRAVIS_JOB_NUMBER##*.} = 1 || exit 0
|
|
- if [ ${TRAVIS_OS_NAME} == "linux" ] && [ "${COVERITY_SCAN_BRANCH}" = 1 ]; then echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-; fi
|
|
|
|
|
|
+ if [ ${TRAVIS_OS_NAME} == "linux" ]; then echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-; fi
|
|
if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_before_install.sh; fi
|
|
if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_before_install.sh; fi
|
|
if [ ${TRAVIS_OS_NAME} == "osx" ]; then sh ./tools/travis/travis_osx_before_install.sh; fi
|
|
if [ ${TRAVIS_OS_NAME} == "osx" ]; then sh ./tools/travis/travis_osx_before_install.sh; fi
|
|
|
|
|
|
script: |
|
|
script: |
|
|
- set -e
|
|
|
|
- test $TRAVIS_BRANCH != coverity_scan || exit 0
|
|
|
|
- if [ ${TRAVIS_OS_NAME} == "linux" ] && [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then sh ./tools/travis/travis_linux_script.sh; fi
|
|
|
|
- if [ ${TRAVIS_OS_NAME} == "osx" ] && [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then sh ./tools/travis/travis_osx_script.sh; fi
|
|
|
|
|
|
+ if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_script.sh; fi
|
|
|
|
+ if [ ${TRAVIS_OS_NAME} == "osx" ]; then sh ./tools/travis/travis_osx_script.sh; fi
|
|
|
|
|
|
after_success: |
|
|
after_success: |
|
|
if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_after_success.sh; fi
|
|
if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_after_success.sh; fi
|
|
|
|
+ # Sleep to flush travis output
|
|
|
|
+ echo == Build success ==
|
|
|
|
+ sleep 5
|
|
|
|
+
|
|
|
|
+after_failure: |
|
|
|
|
+ # Sleep to flush travis output
|
|
|
|
+ echo == Build failed ==
|
|
|
|
+ sleep 5
|
|
|
|
|
|
deploy:
|
|
deploy:
|
|
provider: releases
|
|
provider: releases
|