mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
Update Travis builds to include PHP 7
This commit is contained in:
parent
220e49271c
commit
78694caff3
27
.travis.yml
27
.travis.yml
@ -1,27 +1,26 @@
|
|||||||
# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
|
# See https://github.com/silverstripe/silverstripe-travis-support for setup details
|
||||||
|
|
||||||
language: php
|
language: php
|
||||||
|
|
||||||
php:
|
dist: trusty
|
||||||
- 5.6
|
|
||||||
|
|
||||||
env:
|
|
||||||
- DB=MYSQL CORE_RELEASE=3
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- php: 5.6
|
- php: '7.1'
|
||||||
env: DB=PGSQL CORE_RELEASE=3
|
env: DB=PGSQL CORE_RELEASE=3.7
|
||||||
- php: 5.6
|
- php: '7.1'
|
||||||
env: DB=MYSQL CORE_RELEASE=3
|
env: DB=MYSQL 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:
|
before_script:
|
||||||
- pear -q install --onlyreqdeps pear/PHP_CodeSniffer
|
|
||||||
- phpenv rehash
|
- phpenv rehash
|
||||||
- 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
|
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
|
||||||
- cd ~/builds/ss
|
- cd ~/builds/ss
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- vendor/bin/phpunit translatable/tests/
|
- vendor/bin/phpunit translatable/tests
|
||||||
- phpcs --encoding=utf-8 --tab-width=4 --standard=translatable/tests/phpcs -np translatable
|
- vendor/bin/phpcs --encoding=utf-8 --tab-width=4 --standard=translatable/tests/phpcs -np translatable
|
||||||
|
@ -24,10 +24,8 @@
|
|||||||
"silverstripe/cms": "~3.2"
|
"silverstripe/cms": "~3.2"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"silverstripe/postgresql": "*",
|
"phpunit/phpunit": "^5.7",
|
||||||
"silverstripe/sqlite3": "*",
|
"squizlabs/php_codesniffer": "^3.0"
|
||||||
"silverstripe/mssql": "*",
|
|
||||||
"phpunit/PHPUnit": "~3.7@stable"
|
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"screenshots": [
|
"screenshots": [
|
||||||
|
Loading…
Reference in New Issue
Block a user