Skip to content

Commit f62303e

Browse files
committed
update phpunit & travis config, limit phpcs to 2.9
1 parent 12b7d83 commit f62303e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ php:
66
- 5.6
77
- 7.0
88
- 7.1
9-
- hhvm
9+
- 7.2
1010

1111
before_script:
12-
- phpenv config-rm xdebug.ini ; exit 0
13-
- composer install --dev
12+
- phpenv config-rm xdebug.ini
13+
- composer install
1414
- mkdir -p vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MO4
1515
- cp ruleset.xml vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MO4/
1616
- cp -R Sniffs vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MO4/
1717
- cp -R Tests vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MO4/
1818
- (cd vendor/squizlabs/php_codesniffer/CodeSniffer/Standards ; git clone https://github.com/xalopp/symfony-coding-standard.git Symfony)
1919

2020
script:
21-
- (cd vendor/squizlabs/php_codesniffer ; phpunit --filter MO4)
21+
- (cd vendor/squizlabs/php_codesniffer ; ../../bin/phpunit --filter MO4)
2222
- ./vendor/squizlabs/php_codesniffer/scripts/phpcs ./vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MO4/Sniffs --standard=PHPCS --report=summary -np

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"source": "https://github.com/mayflower/mo4-coding-standard"
3737
},
3838
"require-dev": {
39-
"squizlabs/php_codesniffer": "*"
39+
"squizlabs/php_codesniffer": "2.9.x-dev",
40+
"phpunit/phpunit": "^4.0 || ^5.0"
4041
},
4142
"require": {
4243
"php": ">=5.4.0"

0 commit comments

Comments
 (0)