killbill-memoizeit

circleci: tweak integration tests Signed-off-by: Pierre-Alexandre

10/2/2017 9:47:43 AM

Changes

.circleci/config.yml 20(+10 -10)

Details

.circleci/config.yml 20(+10 -10)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 108f54e..7f506ea 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -135,16 +135,6 @@ jobs:
           command: |
             mvn clean install -DskipTests=true
             nohup ./bin/start-server -s || true
-            count=0
-            until $(curl --output /dev/null --silent --fail http://127.0.0.1:8080/1.0/healthcheck); do
-              if [[ "$count" == "25" ]]; then
-                exit 1
-              fi
-              (( count++ ))
-
-              printf '.'
-              sleep 5
-            done
       - run:
           name: Run integration tests
           command: |
@@ -157,6 +147,16 @@ jobs:
               fi
             fi
             bundle install
+            count=0
+            until $(curl --output /dev/null --silent --fail http://127.0.0.1:8080/1.0/healthcheck); do
+              if [[ "$count" == "25" ]]; then
+                exit 1
+              fi
+              (( count++ ))
+
+              printf '.'
+              sleep 5
+            done
             bundle exec rake test:core | tee /tmp/test-results/test.txt 2>&1
             popd
       - store_test_results: