2015-07-27 20:00:01 -04:00
|
|
|
#!/bin/bash
|
|
|
|
set -e -o pipefail
|
|
|
|
|
|
|
|
echo '*******************'
|
2015-09-22 23:45:30 -04:00
|
|
|
echo '** AFTER_SCRIPT **'
|
2015-07-27 20:00:01 -04:00
|
|
|
echo '*******************'
|
|
|
|
|
2015-09-22 23:45:30 -04:00
|
|
|
if [ "$MODE" = "saucelabs" ]; then
|
|
|
|
./scripts/sauce/sauce_connect_teardown.sh
|
|
|
|
fi
|
2015-10-27 11:09:09 -04:00
|
|
|
if [ "$MODE" = "browserstack" ]; then
|
|
|
|
./scripts/browserstack/teardown_tunnel.sh
|
|
|
|
fi
|
2015-09-22 23:45:30 -04:00
|
|
|
|
2015-07-27 20:00:01 -04:00
|
|
|
|
|
|
|
echo '---------------------'
|
|
|
|
echo '-- WAIT FOR OTHERS --'
|
|
|
|
echo '---------------------'
|
|
|
|
|
2015-08-22 17:59:07 -04:00
|
|
|
python ./scripts/ci/travis_after_all.py
|
2015-07-27 20:00:01 -04:00
|
|
|
. .to_export_back
|
|
|
|
|
|
|
|
echo BUILD_LEADER=$BUILD_LEADER
|
|
|
|
echo BUILD_AGGREGATE_STATUS=$BUILD_AGGREGATE_STATUS
|
|
|
|
|
|
|
|
if [ "$BUILD_LEADER" = "YES" ]; then
|
|
|
|
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
|
|
|
|
./scripts/ci/presubmit-queue-success.sh
|
|
|
|
else
|
|
|
|
echo "ERROR: Some Failed, not submitting"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "ERROR: Other builds have not finished, not submitting"
|
|
|
|
fi
|