librenms-librenms/.travis.yml

34 lines
959 B
YAML
Raw Normal View History

2016-03-03 20:04:09 +00:00
language: php
2016-03-03 11:56:29 -06:00
matrix:
2016-08-08 19:53:04 +01:00
fast_finish: true
include:
- php: 7.0
env: PHP_L=1
2016-08-08 19:53:04 +01:00
- php: 5.3
env: PHP_L_OLD=1
2016-08-08 19:53:04 +01:00
- php: 5.4
env: PHP_L_OLD=1
2016-08-08 19:53:04 +01:00
- php: 5.5
env: PHP_L=1
2016-08-08 19:53:04 +01:00
- php: 5.6
env: PHP_L=1 PHPCS=0
2016-08-08 19:53:04 +01:00
- php: hhvm
env: PHP_L_OLD=1
2016-03-03 11:56:29 -06:00
allow_failures:
2016-08-08 19:53:04 +01:00
- 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