Upload headless results in after_script

I need to see the results even for passing builds, so I can tell how
allowed failures are still failing.
This commit is contained in:
John Firebaugh
2015-05-14 17:33:14 -07:00
parent 816796172a
commit 2efaeb8816
2 changed files with 3 additions and 0 deletions

15
scripts/linux/after_script.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -e
set -o pipefail
if [ ! -z "${AWS_ACCESS_KEY_ID}" ] && [ ! -z "${AWS_SECRET_ACCESS_KEY}" ] ; then
# Install and add awscli to PATH for uploading the results
mapbox_time "install_awscli" \
pip install --user awscli
export PATH="`python -m site --user-base`/bin:${PATH}"
mapbox_time_start "deploy_results"
(cd ./test/suite/ && ./bin/deploy_results.sh)
mapbox_time_finish
fi