Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

[develop] Ensure Artfacts Upload on Failed Tests #7881

Merged
merged 1 commit into from
Sep 10, 2019
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
2 changes: 2 additions & 0 deletions .cicd/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ set -eo pipefail
# tests
if [[ $(uname) == 'Darwin' ]]; then # macOS
export PATH=$PATH:~/mongodb/bin
set +e # defer error handling to end
./"$@"
EXIT_STATUS=$?
else # Linux
. $HELPERS_DIR/file-hash.sh $CICD_DIR/platforms/$IMAGE_TAG.dockerfile
echo "$ docker run --rm --init -v $(pwd):$MOUNTED_DIR $(buildkite-intrinsics) $FULL_TAG bash -c \"$MOUNTED_DIR/$@\""
set +e # defer error handling to end
eval docker run --rm --init -v $(pwd):$MOUNTED_DIR $(buildkite-intrinsics) $FULL_TAG bash -c \"$MOUNTED_DIR/$@\"
EXIT_STATUS=$?
fi
Expand Down