Merge pull request #4072 from murrant/travis-changes

Prep Travis.yml for codesniffer changes
This commit is contained in:
Tony Murray
2016-08-16 08:56:26 -05:00
committed by GitHub
3 changed files with 31 additions and 11 deletions
+2 -1
View File
@@ -11,6 +11,7 @@
# Others #
##########
*.swp
/composer.lock
Thumbs.db
config.php
html/plugins/*
@@ -20,4 +21,4 @@ logs
nbproject
patches
rrd
/vendor
+24 -10
View File
@@ -2,18 +2,32 @@ language: php
matrix:
fast_finish: true
include:
- php: 5.3
script: find . -path './lib/influxdb-php' -prune -o -name "*.php" -print0 | xargs -0 -n1 -P8 php -l | grep -v '^No syntax errors detected' ; test $? -eq 1
- php: 5.4
script: find . -path './lib/influxdb-php' -prune -o -name "*.php" -print0 | xargs -0 -n1 -P8 php -l | grep -v '^No syntax errors detected' ; test $? -eq 1
- php: 5.5
script: find . -name "*.php" -print0 | xargs -0 -n1 -P8 php -l | grep -v '^No syntax errors detected' ; test $? -eq 1
- php: 5.6
script: find . -name "*.php" -print0 | xargs -0 -n1 -P8 php -l | grep -v '^No syntax errors detected' ; test $? -eq 1
- php: 7.0
script: find . -name "*.php" -print0 | xargs -0 -n1 -P8 php -l | grep -v '^No syntax errors detected' ; test $? -eq 1
env: PHP_L=1
- php: 5.3
env: PHP_L_OLD=1
- php: 5.4
env: PHP_L_OLD=1
- php: 5.5
env: PHP_L=1
- php: 5.6
env: PHP_L=1 PHPCS=0
- php: hhvm
script: find . -path './lib/influxdb-php' -prune -o -name "*.php" -print0 | xargs -0 -n1 -P8 php -l | grep -v '^No syntax errors detected' ; test $? -eq 1
env: PHP_L_OLD=1
allow_failures:
- php: 7.0
- php: hhvm
cache:
directories:
- vendor
- $HOME/.composer/cache
before_script:
- composer install --prefer-dist --no-interaction
script:
- if [[ $PHP_L == 1 ]]; then find . -path './vendor' -prune -o -name "*.php" -print0 | xargs -0 -n1 -P8 php -l | grep -v '^No syntax errors detected' ; test $? -eq 1; fi
- if [[ $PHP_L_OLD == 1 ]]; then find . -regextype posix-extended -regex "\./(lib/influxdb-php|vendor)" -prune -o -name "*.php" -print0 | xargs -0 -n1 -P8 php -l | grep -v '^No syntax errors detected' ; test $? -eq 1; fi
- if [[ $PHP_CS == 1 ]]; then vendor/bin/phpcs -n -p --colors --extensions=php --standard=PSR2 --ignore=html/lib/* .; fi
+5
View File
@@ -0,0 +1,5 @@
{
"require": {
"squizlabs/php_codesniffer": "*"
}
}