mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
add phpcs to travis
This commit is contained in:
parent
093275aef6
commit
0dfe373f92
1 changed files with 14 additions and 1 deletions
15
.travis.yml
15
.travis.yml
|
@ -10,6 +10,16 @@ env:
|
|||
- DB=pgsql
|
||||
- DB=sqlite
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- php: 5.4
|
||||
env:
|
||||
- PHPCS=1
|
||||
include:
|
||||
- php: 5.4
|
||||
env:
|
||||
- PHPCS=1
|
||||
|
||||
before_script:
|
||||
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
|
||||
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test2;'; fi"
|
||||
|
@ -23,6 +33,9 @@ before_script:
|
|||
server.listen(80, 'localhost');
|
||||
console.log('TCP server listening on port 80 at localhost.');" > app/tmp/socket.js
|
||||
- sudo node ./app/tmp/socket.js &
|
||||
- pear channel-discover pear.cakephp.org
|
||||
- pear install --alldeps cakephp/CakePHP_CodeSniffer
|
||||
- phpenv rehash
|
||||
- set +H
|
||||
- echo "<?php
|
||||
class DATABASE_CONFIG {
|
||||
|
@ -105,7 +118,7 @@ before_script:
|
|||
}" > app/Config/database.php
|
||||
|
||||
script:
|
||||
- ./lib/Cake/Console/cake test core AllTests --stderr
|
||||
- sh -c "if [ '$PHPCS' != '1' ]; then ./lib/Cake/Console/cake test core AllTests --stderr; else phpcs --standard=CakePHP ./lib/Cake; fi"
|
||||
|
||||
notifications:
|
||||
email: false
|
Loading…
Reference in a new issue