Skip to content

Commit cc438b9

Browse files
authored
Merge pull request #7 from PHPCompatibility/feature/travis-check-self-exclude
Travis: add a check against false positives
2 parents 0b4d7f4 + a262ff4 commit cc438b9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ sudo: false
22

33
dist: trusty
44

5-
cache:
6-
apt: true
7-
85
language: php
96

107
## Cache composer downloads.
118
cache:
9+
apt: true
1210
directories:
1311
- $HOME/.cache/composer/files
1412

@@ -41,7 +39,10 @@ script:
4139
fi
4240
4341
# Test the ruleset.
44-
- vendor/bin/phpcs ./Test/PasswordCompatTest.php --standard=PHPCompatibilityPasswordCompat --runtime-set testVersion 5.4
42+
- vendor/bin/phpcs ./Test/PasswordCompatTest.php --standard=PHPCompatibilityPasswordCompat --runtime-set testVersion 5.4-
43+
44+
# Check that the ruleset does not throw unnecessary errors for the compat library itself.
45+
- vendor/bin/phpcs ./vendor/ircmaxell/ --standard=PHPCompatibilityPasswordCompat --runtime-set testVersion 5.4- --ignore=/password-compat/test/*
4546

4647
# Validate the composer.json file.
4748
# @link https://getcomposer.org/doc/03-cli.md#validate

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"phpcompatibility/php-compatibility" : "^9.0"
2222
},
2323
"require-dev" : {
24-
"dealerdirect/phpcodesniffer-composer-installer": "^0.5"
24+
"dealerdirect/phpcodesniffer-composer-installer": "^0.5",
25+
"ircmaxell/password-compat": "dev-master"
2526
},
2627
"suggest" : {
2728
"dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",

0 commit comments

Comments
 (0)