Skip to content

Commit

Permalink
Set shell options explicitly, as deps_check failure was being ignored.
Browse files Browse the repository at this point in the history
Sub-shells don't inherit shell options by default.
  • Loading branch information
kormat authored Apr 20, 2017
1 parent ab0a523 commit 08da5c5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tools/ci/build_prep
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

set -x
set -exo pipefail

git submodule sync --recursive
git submodule update --init --recursive
# Ensure none of the dependency information has changed
Expand Down
2 changes: 2 additions & 0 deletions tools/ci/env_setup
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -eo pipefail

echo '
# Added by circleci:
export GOPATH=~/go
Expand Down
2 changes: 2 additions & 0 deletions tools/ci/post_check
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -eo pipefail

[ -f /tmp/test_flags/errors ] || exit 0
echo "ERROR: the following actions failed:"
echo "===================================="
Expand Down
2 changes: 1 addition & 1 deletion tools/ci/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set +e
set -o pipefail

mkdir -p /tmp/test_flags || exit 1

Expand Down

0 comments on commit 08da5c5

Please sign in to comment.