Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
feat(travis): Only submit if all the builds complete
Browse files Browse the repository at this point in the history
  • Loading branch information
jbdeboer committed Mar 21, 2014
1 parent 43b950b commit 633d323
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,27 @@ env:
global:
- CHROME_BIN=/usr/bin/google-chrome
- secure: "ZSUCLuDjvKEFmgjAd3GpUNCNkdjE66dEIiBfW+EfN0dv2+QHx/MHL4hRyKk2qbGjCr/suR9JWgmNE+Yu1A4fwzcYN52ehgyoLUCTL9YDk+XkFdFWpnjJ8364TDcDuJA0oxwcqJ9E3XUPv6sq1mbcX6DlkPKco7ZT8TLtGmd0nGA="

before_install:
- export DISPLAY=:99.0
- ./scripts/travis/install.sh
before_script:
- ./scripts/travis/setup.sh
script:
- ./scripts/travis/build.sh
after_script:
- ./scripts/travis/presubmit.sh
- ./scripts/travis/publish-docs.sh

after_success:
- curl -o travis_after_all.py https://raw.github.com/jbdeboer/travis_after_all/master/travis_after_all.py
- python travis_after_all.py
- export $(cat .to_export_back)
- |
if [ "$BUILD_LEADER" = "YES" ]; then
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
echo "All Succeded! Submitting..."
./scripts/travis/presubmit.sh
./scripts/travis/publish-docs.sh
else
echo "Some Failed, not submitting"
fi
else
echo "Other builds have not finished, not submitting"
fi

0 comments on commit 633d323

Please sign in to comment.