2017-01-09 14:14:04 +01:00
|
|
|
language: php
|
|
|
|
|
2017-02-18 04:31:33 +01:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
2017-01-09 14:14:04 +01:00
|
|
|
php:
|
2017-12-02 06:42:12 +01:00
|
|
|
- 5.6
|
|
|
|
- 7.0
|
|
|
|
- 7.1
|
|
|
|
- 7.2
|
2017-01-09 14:14:04 +01:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
2017-02-18 04:31:33 +01:00
|
|
|
env:
|
|
|
|
- TYPE=mysql
|
|
|
|
- TYPE=pgsql
|
|
|
|
|
2017-01-09 14:14:04 +01:00
|
|
|
install:
|
|
|
|
- composer selfupdate
|
|
|
|
- composer install
|
|
|
|
|
2017-02-18 04:31:33 +01:00
|
|
|
before_script:
|
|
|
|
- if [[ "$TYPE" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS b8_test;" -uroot; fi
|
|
|
|
- if [[ "$TYPE" == "pgsql" ]]; then psql -c 'create database b8_test;' -U postgres; fi
|
|
|
|
|
2017-01-09 14:14:04 +01:00
|
|
|
script:
|
2017-11-11 12:57:52 +01:00
|
|
|
- vendor/bin/phpunit --configuration phpunit.$TYPE.xml --coverage-clover=coverage.xml
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2017-01-09 14:14:04 +01:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- poisoncorpsee@gmail.com
|
|
|
|
|
|
|
|
on_success: always
|
|
|
|
on_failure: always
|