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

Commit 633d323

Browse files
committed
feat(travis): Only submit if all the builds complete
1 parent 43b950b commit 633d323

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.travis.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,27 @@ env:
1414
global:
1515
- CHROME_BIN=/usr/bin/google-chrome
1616
- secure: "ZSUCLuDjvKEFmgjAd3GpUNCNkdjE66dEIiBfW+EfN0dv2+QHx/MHL4hRyKk2qbGjCr/suR9JWgmNE+Yu1A4fwzcYN52ehgyoLUCTL9YDk+XkFdFWpnjJ8364TDcDuJA0oxwcqJ9E3XUPv6sq1mbcX6DlkPKco7ZT8TLtGmd0nGA="
17+
1718
before_install:
1819
- export DISPLAY=:99.0
1920
- ./scripts/travis/install.sh
2021
before_script:
2122
- ./scripts/travis/setup.sh
2223
script:
2324
- ./scripts/travis/build.sh
24-
after_script:
25-
- ./scripts/travis/presubmit.sh
26-
- ./scripts/travis/publish-docs.sh
27-
25+
after_success:
26+
- curl -o travis_after_all.py https://raw.github.com/jbdeboer/travis_after_all/master/travis_after_all.py
27+
- python travis_after_all.py
28+
- export $(cat .to_export_back)
29+
- |
30+
if [ "$BUILD_LEADER" = "YES" ]; then
31+
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
32+
echo "All Succeded! Submitting..."
33+
./scripts/travis/presubmit.sh
34+
./scripts/travis/publish-docs.sh
35+
else
36+
echo "Some Failed, not submitting"
37+
fi
38+
else
39+
echo "Other builds have not finished, not submitting"
40+
fi

0 commit comments

Comments
 (0)