fix drone?

This commit is contained in:
James 2020-09-30 14:51:34 +01:00
parent aec7cf7bc2
commit 3b6852f2c4

View File

@ -5,34 +5,34 @@ name: testsuite
steps: steps:
- name: composer install - name: composer install
image: chialab/php image: chialab/php
commands: commands:
- composer install - composer install
volumes: volumes:
- name: composer-cache - name: composer-cache
path: /root/.composer/cache/ path: /root/.composer/cache/
- name: wait for test server - name: wait for test server
image: alpine image: alpine
commands: commands:
- echo "Waiting for server to launch on testserver:8080..." - echo "Waiting for server to launch on testserver:8080..."
- while ! nc -z testserver 8080; do sleep 0.1 ; done - while ! nc -z testserver 8080; do sleep 0.1 ; done
- echo "Ready!" - echo "Ready!"
- name: run tests - name: run tests
image: chialab/php image: chialab/php
environment: environment:
- URL=testserver:8080 - URL=testserver:8080
commands: commands:
- sleep 10 - sleep 10
- vendor/bin/phpunit tests - vendor/bin/phpunit tests
services : services:
- name: testserver - name: testserver
image: node image: node
detach: true detach: true
commands: commands:
- cd tests/server/ - cd tests/server/
- npm install - npm install
- node server.js - node server.js