mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #4072 from murrant/travis-changes
Prep Travis.yml for codesniffer changes
This commit is contained in:
+2
-1
@@ -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
@@ -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
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"require": {
|
||||
"squizlabs/php_codesniffer": "*"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user