From 3b6852f2c4d620836569383debdc3956eda8a9eb Mon Sep 17 00:00:00 2001 From: James Date: Wed, 30 Sep 2020 14:51:34 +0100 Subject: [PATCH] fix drone? --- .drone.yml | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9f0706f..5a2b8a9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,34 +5,34 @@ name: testsuite steps: - name: composer install - image: chialab/php - commands: - - composer install - volumes: - - name: composer-cache - path: /root/.composer/cache/ + image: chialab/php + commands: + - composer install + volumes: + - name: composer-cache + path: /root/.composer/cache/ - name: wait for test server - image: alpine - commands: - - echo "Waiting for server to launch on testserver:8080..." - - while ! nc -z testserver 8080; do sleep 0.1 ; done - - echo "Ready!" + image: alpine + commands: + - echo "Waiting for server to launch on testserver:8080..." + - while ! nc -z testserver 8080; do sleep 0.1 ; done + - echo "Ready!" - name: run tests - image: chialab/php - environment: + image: chialab/php + environment: - URL=testserver:8080 - commands: - - sleep 10 - - vendor/bin/phpunit tests + commands: + - sleep 10 + - vendor/bin/phpunit tests -services : +services: - name: testserver - image: node - detach: true - commands: - - cd tests/server/ - - npm install - - node server.js + image: node + detach: true + commands: + - cd tests/server/ + - npm install + - node server.js