diff options
-rw-r--r-- | .travis.yml | 21 | ||||
-rwxr-xr-x | travis.sh | 17 |
2 files changed, 27 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml index ae5c620..bf62eb0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,12 +5,17 @@ compiler: install: ./travis.sh install script: ./travis.sh script after_success: ./travis.sh after_success +after_failure: ./travis.sh after_failure env: - - UPB_TRAVIS_BUILD=bare - - UPB_TRAVIS_BUILD=barejit - - UPB_TRAVIS_BUILD=core32 - - UPB_TRAVIS_BUILD=withprotobuf - - UPB_TRAVIS_BUILD=lua - - UPB_TRAVIS_BUILD=ndebug - - UPB_TRAVIS_BUILD=coverage - - UPB_TRAVIS_BUILD=genfiles + global: + - secure: "Rk5UxBrSGzyuJsOc7DO3ZTSMj0LbKTpBKS7PlvYIPgcU8+DYd3ZbkvWuJb1qD3CDp0J/9X8XWK2c51taiNlSsiqwS6/ympj7VX/k5VbtG0NauWwMoNZnpB0JHaIW1Qn5O/rI4B0zLCraObD/ythXeFOzevpMbfZcB5DIbNsgD8c=" + - secure: "E9G9109pmBVh085+f3ZDFCUqObCjHJymZW/knx0/ABJ3xK9O91RXEEkQTIaKDDasHcx9eujU9yK8F6gFgFulEZLxLvS5if5RFXeK5G1YX/MxWjA6Jh2j0dnSbGdd5Q+Lj8/tBqo50ry59qGYqaUPZ9aCXanal3ymbl2lA96n5qE=" + matrix: + - UPB_TRAVIS_BUILD=bare + - UPB_TRAVIS_BUILD=barejit + - UPB_TRAVIS_BUILD=core32 + - UPB_TRAVIS_BUILD=withprotobuf + - UPB_TRAVIS_BUILD=lua + - UPB_TRAVIS_BUILD=ndebug + - UPB_TRAVIS_BUILD=coverage + - UPB_TRAVIS_BUILD=genfiles @@ -101,6 +101,20 @@ coverage_after_success() { coveralls --exclude dynasm --exclude tests --exclude upb/bindings/linux --gcov-options '\-lp' } +set -e +set -x + +if [ "$1" == "after_failure" ]; then + # Upload failing tree to S3. + curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash + PATH="$PATH:$HOME/bin" + export ARTIFACTS_BUCKET=haberman-upb-travis-artifacts2 + ARCHIVE=failing-artifacts.tar.gz + tar zcvf $ARCHIVE $(git ls-files -o) + artifacts upload $ARCHIVE + exit +fi + if [ "$1" == "after_success" ] && [ "$UPB_TRAVIS_BUILD" != "coverage" ]; then # after_success is only used for coverage. exit @@ -117,9 +131,6 @@ export USER_CPPFLAGS="-UNDEBUG -DUPB_DEBUG_REFS -DUPB_THREAD_UNSAFE -g" # Enable verbose build. export Q= -set -e -set -x - # Make any compiler warning fail the build. export UPB_FAIL_WARNINGS=true |