From 835b3f3d6772c2a9077665467d9c5e27d759c88e Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Thu, 29 Sep 2016 11:00:29 +0100 Subject: [PATCH] Improve script names --- bin/circle-test-pre | 4 +--- bin/{circle-test-override => circle-test-smoke} | 0 bin/{circle-test-post => circle-test-teardown} | 0 bin/circle-test-unit | 11 +++++++++++ circle.yml | 6 ++++-- 5 files changed, 16 insertions(+), 5 deletions(-) rename bin/{circle-test-override => circle-test-smoke} (100%) rename bin/{circle-test-post => circle-test-teardown} (100%) create mode 100755 bin/circle-test-unit diff --git a/bin/circle-test-pre b/bin/circle-test-pre index e019c3b6..9c43e1c9 100755 --- a/bin/circle-test-pre +++ b/bin/circle-test-pre @@ -6,10 +6,8 @@ source "$STATE" if [ -z "$SKIP_TESTS" ] ; then cd $SRCDIR - make lint - COVERDIR=test/coverage make RM= tests - make COVERAGE=true RM= all make testrunner + make COVERAGE=true RM= all cd $SRCDIR/test ./gce.sh setup && eval $(./gce.sh hosts) && ./setup.sh diff --git a/bin/circle-test-override b/bin/circle-test-smoke similarity index 100% rename from bin/circle-test-override rename to bin/circle-test-smoke diff --git a/bin/circle-test-post b/bin/circle-test-teardown similarity index 100% rename from bin/circle-test-post rename to bin/circle-test-teardown diff --git a/bin/circle-test-unit b/bin/circle-test-unit new file mode 100755 index 00000000..93a51ec6 --- /dev/null +++ b/bin/circle-test-unit @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +source "$STATE" + +if [ -z "$SKIP_TESTS" ] ; then + cd $SRCDIR + make lint + COVERDIR=test/coverage make RM= tests +fi diff --git a/circle.yml b/circle.yml index 2d8d9a34..0870e542 100644 --- a/circle.yml +++ b/circle.yml @@ -25,11 +25,13 @@ test: - "$SRCDIR/bin/circle-test-pre": parallel: true override: - - "$SRCDIR/bin/circle-test-override": + - "$SRCDIR/bin/circle-test-unit": + parallel: true + - "$SRCDIR/bin/circle-test-smoke": parallel: true timeout: 300 post: - - "$SRCDIR/bin/circle-test-post": + - "$SRCDIR/bin/circle-test-teardown": parallel: true teardown: