]> git.agnieray.net Git - galette.git/commitdiff
Pear is down, use packagist to get phpcs
authorJohan Cwiklinski <johan@x-tnd.be>
Sun, 27 Jan 2019 05:59:02 +0000 (06:59 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Sun, 27 Jan 2019 05:59:02 +0000 (06:59 +0100)
.travis.yml

index faac1349bba4c32d02ac6d0df8e2929637766c09..f983349e1ed296755d2f80c186479141fcbeddde 100644 (file)
@@ -6,11 +6,10 @@ before_script:
   - sh -c "if [ '$DB' = 'pgsql' ]; then psql -d galette_tests -a -f galette/install/scripts/pgsql.sql -U postgres; fi"
   - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS galette_tests;'; fi"
   - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'use galette_tests; source galette/install/scripts/mysql.sql;'; fi"
-  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" && $DB == "mysql" ]]; then pear install pear/PHP_CodeSniffer; fi
-  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" && $DB == "mysql" ]]; then phpenv rehash; fi
+  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" && $DB == "mysql" ]]; then cd galette && composer require squizlabs/php_codesniffer && cd ..; fi
 
 script:
-  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" && $DB == "mysql" ]]; then phpcs -n -p --ignore=Pdf.php,PdfGroups.php,PdfAttendanceSheet.php,galette_tcpdf_config.php --standard=phpcs-rules.xml galette/lib/ tests/ galette/webroot/index.php galette/includes/fields_defs/ galette/includes/smarty_plugins/ galette/includes/functions.inc.php galette/includes/galette.inc.php galette/includes/dependencies.php galette/includes/main.inc.php; fi
+  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" && $DB == "mysql" ]]; then galette/vendor/bin/phpcs -n -p --ignore=Pdf.php,PdfGroups.php,PdfAttendanceSheet.php,galette_tcpdf_config.php --standard=phpcs-rules.xml galette/lib/ tests/ galette/webroot/index.php galette/includes/fields_defs/ galette/includes/smarty_plugins/ galette/includes/functions.inc.php galette/includes/galette.inc.php galette/includes/dependencies.php galette/includes/main.inc.php; fi
   - php galette/vendor/bin/atoum -mcn 1 -bf tests/TestsBootstrap.php -c tests/telemetry.php -d tests/Galette/
 
 language: php