Skip to content

Commit

Permalink
added php lint
Browse files Browse the repository at this point in the history
to early catch php 5.4 compat issues
  • Loading branch information
staabm committed Aug 27, 2018
1 parent de85967 commit 3912616
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ language: php
dist: trusty

php:
- 5.5
- 5.4
- 5.5.9
- 5.6
- 7.0
- 7.1
Expand All @@ -28,6 +29,7 @@ cache:
- "$HOME/.composer/cache"

before_script:
- if find . -name "*.php" ! -path "*/vendor/*" -exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi
- if [[ "$SETUP" = "basic" ]]; then composer install --no-interaction --prefer-dist; fi
- if [[ "$SETUP" = "lowest" ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable; fi
- if [[ $TRAVIS_PHP_VERSION = "5.6" && "$SETUP" = "basic" ]]; then PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"; fi
Expand Down

0 comments on commit 3912616

Please sign in to comment.