Rename SKIP_TESTS
This commit is contained in:
1 parent
4c304c0013
commit
b8e7d83f19
7 files changed
+9
-9
No files matched your search
@@ -5,7 +5,7 @@ set -e
|
||||
# We need jq to analyse the PR files JSON, so install that first
|
||||
sudo apt-get -q update && sudo apt-get -q install bc jq
|
||||
|
||||
rm -f "$STATE" && touch "$STATE"
|
||||
echo "TEST_AND_PUBLISH=1" > "$STATE"
|
||||
|
||||
if [ -n "$CI_PULL_REQUEST" -a "$CI_PULL_REQUEST" = "$CI_PULL_REQUESTS" ] ; then
|
||||
if PR=$(echo "$CI_PULL_REQUEST" | grep -oP '(?<=^https://github.com/weaveworks/weave/pull/)[0-9]+$') ; then
|
||||
@@ -14,7 +14,7 @@ if [ -n "$CI_PULL_REQUEST" -a "$CI_PULL_REQUEST" = "$CI_PULL_REQUESTS" ] ; then
|
||||
echo "PR touches [$FILES]"
|
||||
if ! echo "$FILES" | grep -v ^site/ ; then
|
||||
echo "PR contains site changes only - skipping tests"
|
||||
echo "SKIP_TESTS=1" >> "$STATE"
|
||||
echo "TEST_AND_PUBLISH=" >> "$STATE"
|
||||
else
|
||||
echo "PR contains non-site changes - running tests"
|
||||
fi
|
||||
@@ -30,7 +30,7 @@ source "$STATE"
|
||||
|
||||
mkdir -p $(dirname $SRCDIR) && cp -r $(pwd)/ $SRCDIR
|
||||
|
||||
if [ -z "$SKIP_TESTS" ] ; then
|
||||
if [ -n "$TEST_AND_PUBLISH" ] ; then
|
||||
bin/setup-circleci-secrets "$SECRET_PASSWORD"
|
||||
cd $SRCDIR; git submodule update --init
|
||||
if [ "$CIRCLE_NODE_INDEX" = "0" ] ; then
|
||||
|
||||
Reference in new issue
Block a user