Skip to content

Commit

Permalink
Adds .gitattributes to ignore all test and documentation with “export…
Browse files Browse the repository at this point in the history
…-ignore”. Fix CI.
  • Loading branch information
ddebin committed Jan 6, 2020
1 parent 6411f68 commit 5d86c48
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 850 deletions.
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Ignore all test and documentation with “export-ignore”.
.gitattributes export-ignore
.gitignore export-ignore
.idea export-ignore
.php_cs export-ignore
.travis.yml export-ignore
README.md export-ignore
phpunit.xml export-ignore
phpstan.neon export-ignore
/tests export-ignore
/example export-ignore
12 changes: 0 additions & 12 deletions .idea/atom-generator.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 1 addition & 13 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ cache:

sudo: false

dist: trusty

matrix:
fast_finish: true
include:
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4

env:
matrix:
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.15",
"phpunit/phpunit": "^7",
"phpstan/phpstan-strict-rules": "^0.11.1",
"phpstan/phpstan-webmozart-assert": "^0.11.2"
"phpstan/phpstan-strict-rules": "^0.12",
"phpstan/phpstan-webmozart-assert": "^0.12"
},
"config": {
"platform": {
Expand All @@ -44,8 +44,8 @@
}
},
"scripts": {
"test": "./vendor/bin/php-cs-fixer fix --allow-risky=yes && ./vendor/bin/phpstan analyse -l 7 -c phpstan.neon src tests && ./vendor/bin/phpunit",
"phpstan": "./vendor/bin/phpstan analyse -l 7 -c phpstan.neon src tests",
"phpunit": "./vendor/bin/phpunit"
"test": "php-cs-fixer fix --allow-risky=yes && phpstan analyse -l 7 -c phpstan.neon src tests && phpunit",
"phpstan": "phpstan analyse -l 7 -c phpstan.neon src tests",
"phpunit": "phpunit"
}
}
Loading

0 comments on commit 5d86c48

Please sign in to comment.