Skip to content

Commit

Permalink
Create .travis-ci.yml adding PHP lint
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmollenhour authored and edannenberg committed Dec 6, 2017
1 parent 9060e5c commit 73197f5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2

matrix:
allow_failures:
- php: 7.2

script:
- '! find . -not \( -path ./lib/PEAR -prune \) -not \( -path ./lib/phpseclib -prune \) -not \( -path ./lib/Zend -prune \) -type f -name "*.php" -exec php -d error_reporting=32767 -l {} \; 2>&1 >&- | grep "^"'
- '! find app/design -type f -name "*.phtml" -exec php -d error_reporting=32767 -l {} \; 2>&1 >&- | grep "^"'

0 comments on commit 73197f5

Please sign in to comment.