Skip to content

Commit 7e41e4f

Browse files
committed
Enhancement: Run phpcs only on PHP 5.6
1 parent 61ae35e commit 7e41e4f

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.travis.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ cache:
1414
directories:
1515
- $HOME/.composer/cache
1616

17-
php:
18-
# Can't test against 5.2; openssl is not available:
19-
# http://docs.travis-ci.com/user/languages/php/#PHP-installation
20-
- 5.3
21-
- 5.4
22-
- 5.5
23-
- 5.6
24-
- hhvm
17+
matrix:
18+
include:
19+
# Can't test against 5.2; openssl is not available:
20+
# http://docs.travis-ci.com/user/languages/php/#PHP-installation
21+
- php: 5.3
22+
- php: 5.4
23+
- php: 5.5
24+
- php: 5.6
25+
env: PHPCS=true
26+
- php: hhvm
2527

2628
install:
2729
- composer install
@@ -34,4 +36,4 @@ before_script:
3436

3537
script:
3638
- vendor/bin/phpunit
37-
- vendor/bin/phpcs src --standard=style/ruleset.xml -np
39+
- if [[ "$PHPCS" == "true" ]]; then vendor/bin/phpcs src --standard=style/ruleset.xml -np; fi

0 commit comments

Comments
 (0)