test insddenting
This commit is contained in:
parent
5af2db0df9
commit
3a69936851
40
.drone.yml
40
.drone.yml
@ -5,31 +5,31 @@ 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
|
||||||
commands:
|
commands:
|
||||||
- URL=http://testserver:8080 vendor/bin/phpunit tests
|
- URL=http://testserver:8080 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
|
||||||
|
Loading…
Reference in New Issue
Block a user