Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis: add a check against false positives #7

Merged
merged 1 commit into from
Aug 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ sudo: false

dist: trusty

cache:
apt: true

language: php

## Cache composer downloads.
cache:
apt: true
directories:
- $HOME/.cache/composer/files

Expand Down Expand Up @@ -41,7 +39,10 @@ script:
fi

# Test the ruleset.
- vendor/bin/phpcs ./Test/PasswordCompatTest.php --standard=PHPCompatibilityPasswordCompat --runtime-set testVersion 5.4
- vendor/bin/phpcs ./Test/PasswordCompatTest.php --standard=PHPCompatibilityPasswordCompat --runtime-set testVersion 5.4-

# Check that the ruleset does not throw unnecessary errors for the compat library itself.
- vendor/bin/phpcs ./vendor/ircmaxell/ --standard=PHPCompatibilityPasswordCompat --runtime-set testVersion 5.4- --ignore=/password-compat/test/*

# Validate the composer.json file.
# @link https://getcomposer.org/doc/03-cli.md#validate
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"phpcompatibility/php-compatibility" : "^9.0"
},
"require-dev" : {
"dealerdirect/phpcodesniffer-composer-installer": "^0.5"
"dealerdirect/phpcodesniffer-composer-installer": "^0.5",
"ircmaxell/password-compat": "dev-master"
},
"suggest" : {
"dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
Expand Down