.travis.yml
sudo: false
language: php
php:
- 5.6
- 7.0
- hhvm
env:
- DB=mysql PHAMILY_TEST_ENV=testing_mysql
- DB=pgsql PHAMILY_TEST_ENV=testing_pgsql
matrix:
exclude:
- php: hhvm
env: DB=pgsql PHAMILY_TEST_ENV=testing_pgsql
before_script:
- composer self-update
- composer install
- cp phinx.yml.dist phinx.yml
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database phamily_test;' -U postgres; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database phamily_test;'; fi"
- vendor/bin/phinx migrate -e $PHAMILY_TEST_ENV
script:
- phpunit --coverage-clover build/logs/clover.xml tests/
after_script:
- ./vendor/bin/test-reporter