Add drone.yml and fix tests to be compatable with docker pipeline #1

Merged
jhodges merged 14 commits from tests into master 2020-09-30 15:13:57 +01:00
Showing only changes of commit 943d6c89e6 - Show all commits

View File

@ -5,31 +5,31 @@ 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
commands:
- URL=http://testserver:8080 vendor/bin/phpunit tests
image: chialab/php
commands:
- URL=http://testserver:8080 vendor/bin/phpunit tests
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