php-censor/.travis.yml

39 lines
634 B
YAML
Raw Normal View History

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:
- 5.6
- 7.0
2017-01-09 14:34:06 +01:00
- 7.1
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-02-18 04:31:33 +01:00
- vendor/bin/phpunit --configuration phpunit.$TYPE.xml --coverage-text
2017-01-09 14:14:04 +01:00
notifications:
email:
recipients:
- poisoncorpsee@gmail.com
on_success: always
on_failure: always