ulogger-server/.travis.yml

27 lines
511 B
YAML
Raw Normal View History

2017-09-05 09:36:10 +02:00
language: php
sudo: required
php:
- 7.0
env:
2017-09-05 09:42:25 +02:00
global:
2017-09-05 10:20:28 +02:00
- DB_HOST=127.0.0.1
2017-09-05 09:42:25 +02:00
- DB_NAME=ulogger
- DB_USER=ulogger
- DB_PASS=secret2
- DB_PORT=8081
- ULOGGER_URL="http://127.0.0.1:8080"
2017-09-05 09:36:10 +02:00
services:
- docker
before_install:
- docker build -t ulogger .
- docker run -d --name ulogger -p 8080:80 -p 8081:3306 --expose 3306 ulogger
- composer install
- until netstat -atn 2>/dev/null | grep '8080.*LISTEN'; do sleep 1; done
script:
- ./vendor/bin/phpunit -c .tests/phpunit.xml