Skip to content

Commit 3bbb86b

Browse files
authored
Merge pull request #114 from pmorie/tests-trace
Control -x in test.sh with TRACE
2 parents e0a5d04 + 4ebe8b1 commit 3bbb86b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ install:
1616
-
1717

1818
script:
19-
./test.sh
19+
TRACE=1 ./test.sh
2020

2121
# TBD. Suppressing for now.
2222
notifications:

test.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@
1515
# limitations under the License.
1616

1717
set -e
18-
set -x
18+
19+
# Enable tracing in this script off by setting the TRACE variable in your
20+
# environment to any value:
21+
#
22+
# $ TRACE=1 test.sh
23+
TRACE=${TRACE:""}
24+
if [ -n "$TRACE" ]; then
25+
set -x
26+
fi
1927

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

0 commit comments

Comments
 (0)