Skip to content

Commit

Permalink
Fix printing attempt number
Browse files Browse the repository at this point in the history
  • Loading branch information
tjenkinson committed Oct 16, 2016
1 parent 90d8c4f commit 1dbd31a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/travis.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
# https://docs.travis-ci.com/user/customizing-the-build/#Implementing-Complex-Build-Steps
set -ev

npm install
if [ "${TRAVIS_MODE}" = "buildLib" ]; then
npm run buildlib
Expand All @@ -15,7 +16,7 @@ elif [ "${TRAVIS_MODE}" = "funcTests" ]; then
until [ $n -ge ${maxRetries} ]
do
if [ $n -gt 0 ]; then
echo "Retrying... Attempt: ${n+1}"
echo "Retrying... Attempt: $((n+1))"
fi
npm run testfunc && break
n=$[$n+1]
Expand Down

0 comments on commit 1dbd31a

Please sign in to comment.