37 lines
672 B
YAML
37 lines
672 B
YAML
dist: xenial
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
language: php
|
|
|
|
services:
|
|
- mysql
|
|
- postgresql
|
|
|
|
php:
|
|
- 7.2
|
|
- 7.3
|
|
- 7.4
|
|
- nightly
|
|
|
|
before_script:
|
|
- psql -c 'DROP DATABASE IF EXISTS test;' -U postgres
|
|
- psql -c 'create database test;' -U postgres
|
|
- mysql -e 'create database IF NOT EXISTS test;'
|
|
- composer install --ignore-platform-reqs
|
|
|
|
script:
|
|
- mkdir -p build/logs
|
|
- cd build
|
|
- ../vendor/bin/phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml
|
|
- cd ../
|
|
|
|
after_script:
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
|
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
|
|
|
|
jobs:
|
|
allow_failures:
|
|
- php: nightly
|