diff --git a/.travis.yml b/.travis.yml index d6ea1f0..8879c85 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,35 +1,29 @@ -# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details +# See https://github.com/silverstripe/silverstripe-travis-support for setup details -sudo: false +dist: trusty language: php -php: - - 5.4 - - 5.5 - -env: - - DB=MYSQL CORE_RELEASE=3.5 - matrix: include: - - php: 5.6 - env: DB=MYSQL CORE_RELEASE=3 - - php: 7.0 + - php: '5.6' env: DB=MYSQL CORE_RELEASE=3.6 - - php: 7.1 - env: DB=PGSQL CORE_RELEASE=3.6 COVERAGE=1 + - php: '7.0' + env: DB=MYSQL CORE_RELEASE=3.7 + - php: '7.1' + env: DB=PGSQL CORE_RELEASE=3.7 + - php: '7.2' + env: DB=MYSQL CORE_RELEASE=3.7 + - php: '7.3' + env: DB=MYSQL CORE_RELEASE=3.7 before_script: - composer self-update || true - - git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support + - git clone git://github.com/silverstripe/silverstripe-travis-support.git ~/travis-support - php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss - cd ~/builds/ss - composer install script: - - if [[ $COVERAGE ]]; then vendor/bin/phpunit --coverage-clover coverage.xml environmentcheck/tests; fi - - if [[ ! $COVERAGE ]]; then vendor/bin/phpunit environmentcheck/tests; fi + - vendor/bin/phpunit environmentcheck/tests -after_success: - - if [[ $COVERAGE ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi diff --git a/composer.json b/composer.json index 477d9ca..e749dbf 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,7 @@ }, "require-dev": { + "phpunit/phpunit": "^5.7", "hafriedlander/phockito": "dev-master" }, "extra": []