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
|
# 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
|
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 [ -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
|
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]"
|
echo "PR touches [$FILES]"
|
||||||
if ! echo "$FILES" | grep -v ^site/ ; then
|
if ! echo "$FILES" | grep -v ^site/ ; then
|
||||||
echo "PR contains site changes only - skipping tests"
|
echo "PR contains site changes only - skipping tests"
|
||||||
echo "SKIP_TESTS=1" >> "$STATE"
|
echo "TEST_AND_PUBLISH=" >> "$STATE"
|
||||||
else
|
else
|
||||||
echo "PR contains non-site changes - running tests"
|
echo "PR contains non-site changes - running tests"
|
||||||
fi
|
fi
|
||||||
@@ -30,7 +30,7 @@ source "$STATE"
|
|||||||
|
|
||||||
mkdir -p $(dirname $SRCDIR) && cp -r $(pwd)/ $SRCDIR
|
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"
|
bin/setup-circleci-secrets "$SECRET_PASSWORD"
|
||||||
cd $SRCDIR; git submodule update --init
|
cd $SRCDIR; git submodule update --init
|
||||||
if [ "$CIRCLE_NODE_INDEX" = "0" ] ; then
|
if [ "$CIRCLE_NODE_INDEX" = "0" ] ; then
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
source "$STATE"
|
source "$STATE"
|
||||||
|
|
||||||
if [ -z "$SKIP_TESTS" ] ; then
|
if [ -n "$TEST_AND_PUBLISH" ] ; then
|
||||||
docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
||||||
cd $SRCDIR
|
cd $SRCDIR
|
||||||
make clean-bin
|
make clean-bin
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
source "$STATE"
|
source "$STATE"
|
||||||
|
|
||||||
if [ -z "$SKIP_TESTS" ] ; then
|
if [ -n "$TEST_AND_PUBLISH" ] ; then
|
||||||
if [ "$CIRCLE_NODE_INDEX" = "0" ] ; then
|
if [ "$CIRCLE_NODE_INDEX" = "0" ] ; then
|
||||||
go get github.com/mattn/goveralls
|
go get github.com/mattn/goveralls
|
||||||
goveralls -repotoken $COVERALLS_REPO_TOKEN -coverprofile=$SRCDIR/test/profile.cov -service=circleci
|
goveralls -repotoken $COVERALLS_REPO_TOKEN -coverprofile=$SRCDIR/test/profile.cov -service=circleci
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
source "$STATE"
|
source "$STATE"
|
||||||
|
|
||||||
if [ -z "$SKIP_TESTS" ] ; then
|
if [ -n "$TEST_AND_PUBLISH" ] ; then
|
||||||
cd $SRCDIR
|
cd $SRCDIR
|
||||||
make testrunner
|
make testrunner
|
||||||
make COVERAGE=true RM= all
|
make COVERAGE=true RM= all
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
source "$STATE"
|
source "$STATE"
|
||||||
|
|
||||||
if [ -z "$SKIP_TESTS" ] ; then
|
if [ -n "$TEST_AND_PUBLISH" ] ; then
|
||||||
cd $SRCDIR/test
|
cd $SRCDIR/test
|
||||||
eval $(./gce.sh hosts)
|
eval $(./gce.sh hosts)
|
||||||
export COVERAGE=true
|
export COVERAGE=true
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
source "$STATE"
|
source "$STATE"
|
||||||
|
|
||||||
if [ -z "$SKIP_TESTS" ] ; then
|
if [ -n "$TEST_AND_PUBLISH" ] ; then
|
||||||
cd $SRCDIR/test
|
cd $SRCDIR/test
|
||||||
./gce.sh destroy
|
./gce.sh destroy
|
||||||
test "$CIRCLE_NODE_INDEX" != "0" || (cd $SRCDIR/test; ./gen_coverage_reports.sh)
|
test "$CIRCLE_NODE_INDEX" != "0" || (cd $SRCDIR/test; ./gen_coverage_reports.sh)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
source "$STATE"
|
source "$STATE"
|
||||||
|
|
||||||
if [ -z "$SKIP_TESTS" ] ; then
|
if [ -n "$TEST_AND_PUBLISH" ] ; then
|
||||||
cd $SRCDIR
|
cd $SRCDIR
|
||||||
make lint
|
make lint
|
||||||
COVERDIR=test/coverage make RM= tests
|
COVERDIR=test/coverage make RM= tests
|
||||||
|
|||||||
Reference in new issue
Block a user