language: php
php:
- 7.0
- 7.1
sudo: false
matrix:
fast_finish: true
addons:
postgresql: "9.3"
env: TEST_USER=root TEST_PASSWORD= TEST_DATABASE=caribu_test PG_TEST_USER=postgres PG_TEST_PASSWORD= PG_TEST_DATABASE=caribu_test
before_script:
- wget http://getcomposer.org/composer.phar
- php composer.phar install --dev --no-interaction
- mysql -e 'create database caribu_test'
- psql -c 'create database caribu_test;' -U postgres
script:
- mkdir -p build/logs
- phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
|