Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions travis/upload-test-results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
# Upload the results of tests after running a build on Travis

LOG_FILE_TGZ=bes-autotest-${TRAVIS_JOB_NUMBER}-logs.tar.gz
if test x$BES_BUILD = xmain -o x$BES_BUILD = xdistcheck
if test "$BES_BUILD" = main -o "$BES_BUILD" = distcheck -o "$BES_BUILD" = "docker-rhel8"
then
echo "Packaging log files for '$BES_BUILD'"
tar -czf /tmp/${LOG_FILE_TGZ} `find . -name timing -prune -o -name '*.log' -print -o -name '*site_map.txt' -print`

# using: 'test -z "$AWS_ACCESS_KEY_ID" || ...' keeps after_script from running
# the aws cli for forked PRs (where secure env vars are null). I could've used
# an 'if' to block out the whole script, but I didn't... jhrg 3/21/18

test -z "$AWS_ACCESS_KEY_ID" || aws s3 cp /tmp/${LOG_FILE_TGZ} s3://opendap.travis.tests/
fi

Expand Down
Loading