.travis.yml
language: php
php:
- '7.1'
- '7.2'
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- mkdir -p build/logs
- cp tests/config_test.php config.php
- cp tests/hook_test.php hook.php
- COMPOSER=composer-es5x.json composer install
- ./vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover clover.xml
after_script:
- ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT
cache:
directories:
- vendor