Skip to content

Commit

Permalink
Control -x in test.sh with TRACE
Browse files Browse the repository at this point in the history
  • Loading branch information
pmorie committed May 2, 2018
1 parent 838b1d1 commit 4ebe8b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ install:
-

script:
./test.sh
TRACE=1 ./test.sh

# TBD. Suppressing for now.
notifications:
Expand Down
10 changes: 9 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@
# limitations under the License.

set -e
set -x

# Enable tracing in this script off by setting the TRACE variable in your
# environment to any value:
#
# $ TRACE=1 test.sh
TRACE=${TRACE:""}
if [ -n "$TRACE" ]; then
set -x
fi

# Make sure, we run in the root of the repo and
# therefore run the tests on all packages
Expand Down

0 comments on commit 4ebe8b1

Please sign in to comment.