Skip to content

Commit

Permalink
Various small tweaks
Browse files Browse the repository at this point in the history
* Ignore PHPUnit 8.x cache file.
* Only run `composer validate` once per build.
* Ignore the `.git` directory for Parallel Lint to make it faster.
  • Loading branch information
jrfnl committed Dec 25, 2019
1 parent 75a6428 commit 576630e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ composer.lock
.phpcs.xml
phpcs.xml
phpunit.xml
.phpunit.result.cache
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
- diff -B ./PHPCSDebug/ruleset.xml <(xmllint --format "./PHPCSDebug/ruleset.xml")
- diff -B ./PHPCSDev/ruleset.xml <(xmllint --format "./PHPCSDev/ruleset.xml")

# Validate the composer.json file.
# @link https://getcomposer.org/doc/03-cli.md#validate
- composer validate --no-check-all --strict

#### QUICK TEST STAGE ####
# This is a much quicker test which only runs the unit tests and linting against the low/high
Expand Down Expand Up @@ -144,9 +147,5 @@ script:
# which is why it is run against various PHP versions and not in the "Sniff" stage.
- if [[ "$LINT" == "1" ]]; then composer check-complete; fi

# Validate the composer.json file.
# @link https://getcomposer.org/doc/03-cli.md#validate
- if [[ "$LINT" == "1" ]]; then composer validate --no-check-all --strict; fi

# Run the unit tests.
- if [[ $PHPCS_VERSION != "n/a" ]]; then composer run-tests; fi
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
],
"scripts" : {
"lint": [
"@php ./vendor/jakub-onderka/php-parallel-lint/parallel-lint . -e php --exclude vendor"
"@php ./vendor/jakub-onderka/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git"
],
"check-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcs"
Expand Down

0 comments on commit 576630e

Please sign in to comment.