Skip to content

Commit

Permalink
Detect use of Travis tests on Shippable.
Browse files Browse the repository at this point in the history
This can occur when building pre-Shippable branches or PRs.
  • Loading branch information
mattclay committed Jun 6, 2016
1 parent 7eec99a commit 0359714
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/utils/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/bin/sh

if [ "${SHIPPABLE}" = "true" ]; then
echo "It appears this job is running on Shippable instead of Travis."
if [ "${IS_PULL_REQUEST}" = "true" ]; then
echo "Please rebase the branch used for this pull request."
else
echo "This branch needs to be updated to work with Shippable."
fi
exit 1
fi

set -e
set -u
set -x
Expand Down

0 comments on commit 0359714

Please sign in to comment.