sitemap/.drone.yml
James 290eb89192
Some checks failed
continuous-integration/drone/push Build is failing
fix
2020-09-30 15:04:15 +01:00

37 lines
634 B
YAML

kind: pipeline
type: docker
name: testsuite
steps:
- name: composer install
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!"
- name: run tests
image: chialab/php
commands:
- sleep 10
- URL=testserver:8080 vendor/bin/phpunit tests
services:
- name: testserver
image: node
detach: true
commands:
- cd tests/server/
- npm install
- node server.js