mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Detect use of Travis tests on Shippable.
This can occur when building pre-Shippable branches or PRs.
This commit is contained in:
parent
7eec99a140
commit
03597143d0
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue