1+ # This Travis config template file was taken from https://github.com/FriendsOfCake/travis
12language : php
23
34php :
@@ -10,48 +11,30 @@ sudo: false
1011env :
1112 matrix :
1213 - DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test'
13- - DB=pgsql db_dsn='postgres://postgres @127.0.0.1/cakephp_test'
14+ - DB=pgsql db_dsn='postgres://travis @127.0.0.1/cakephp_test'
1415 - DB=sqlite db_dsn='sqlite:///:memory:'
16+
1517 global :
1618 - DEFAULT=1
1719
1820matrix :
19- allow_failures :
20- - php : hhvm
21-
22- - php : hhvm-nightly
23-
2421 fast_finish : true
2522
2623 include :
27- - php : 5.4
28- env : PHPCS=1 DEFAULT=0
29-
30- - php : 5.4
31- env : COVERALLS=1 DEFAULT=0
32-
33- - php : hhvm
34- env : HHVM=1 DB=sqlite db_class='Cake\Database\Driver\Sqlite' db_dsn='sqlite::memory:'
35-
36- - php : hhvm
37- env : HHVM=1 DB=mysql db_class='Cake\Database\Driver\Mysql' db_dsn='mysql:host=0.0.0.0;dbname=cakephp_test' db_database='cakephp_test' db_login='travis' db_password=''
24+ - php : 5.4
25+ env : PHPCS=1 DEFAULT=0
3826
39- - php : hhvm-nightly
40- env : HHVM =1 DB=sqlite db_class='Cake\Database\Driver\Sqlite' db_dsn='sqlite::memory: '
27+ - php : 5.4
28+ env : COVERALLS =1 DEFAULT=0 DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test '
4129
42- - php : hhvm-nightly
43- env : HHVM=1 DB=mysql db_class='Cake\Database\Driver\Mysql' db_dsn='mysql:host=0.0.0.0;dbname=cakephp_test' db_database='cakephp_test' db_login='travis' db_password=''
44-
45- before_script :
30+ install :
4631 - composer self-update
47- - composer install --prefer-source --no-interaction --dev
32+ - composer install --prefer-dist --no-interaction --dev
4833
34+ before_script :
4935 - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
50-
5136 - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"
52-
53- - sh -c "if [ '$PHPCS' = '1' ]; then composer require squizlabs/php_codesniffer; fi"
54-
37+ - sh -c "if [ '$PHPCS' = '1' ]; then composer require cakephp/cakephp-codesniffer:dev-master; fi"
5538 - sh -c "if [ '$COVERALLS' = '1' ]; then composer require --dev satooshi/php-coveralls:dev-master; fi"
5639 - sh -c "if [ '$COVERALLS' = '1' ]; then mkdir -p build/logs; fi"
5740
@@ -61,7 +44,7 @@ before_script:
6144
6245script :
6346 - sh -c "if [ '$DEFAULT' = '1' ]; then phpunit --stderr; fi"
64- - sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p --extensions=php --standard=psr2 --ignore=tests/bootstrap.php ./src ./tests ; fi"
47+ - sh -c "if [ '$PHPCS' = '1' ]; then ./ vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi"
6548 - sh -c "if [ '$COVERALLS' = '1' ]; then phpunit --stderr --coverage-clover build/logs/clover.xml; fi"
6649 - sh -c "if [ '$COVERALLS' = '1' ]; then php vendor/bin/coveralls -c .coveralls.yml -v; fi"
6750
0 commit comments