mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
Update Travis builds to include PHP 7, update PHPUnit to 5.7
This commit is contained in:
parent
fc94e7bd42
commit
78be2d53b4
32
.travis.yml
32
.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
|
||||
|
@ -20,6 +20,7 @@
|
||||
},
|
||||
"require-dev":
|
||||
{
|
||||
"phpunit/phpunit": "^5.7",
|
||||
"hafriedlander/phockito": "dev-master"
|
||||
},
|
||||
"extra": []
|
||||
|
Loading…
Reference in New Issue
Block a user