Skip to content

Commit b50590f

Browse files
authored
Merge pull request #2 from phpversions/feature/modernize
Feature/modernize
2 parents 96498ba + 274ecb2 commit b50590f

File tree

10 files changed

+4431
-20
lines changed

10 files changed

+4431
-20
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.DS_Store
2-
composer.lock
32
vendor
3+
.idea/

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
language: php
2+
3+
php:
4+
- 7.2
5+
- 7.3
6+
- nightly
7+
8+
matrix:
9+
fast_finish: true
10+
allow_failures:
11+
- php: nightly
12+
13+
sudo: false
14+
15+
before_install:
16+
- travis_retry composer self-update
17+
18+
install:
19+
- travis_retry composer require --no-update satooshi/php-coveralls:^1.0
20+
- travis_retry composer install --no-interaction --prefer-dist
21+
22+
before_script:
23+
- mkdir -p build/logs
24+
25+
script:
26+
- composer run phpstan
27+
- travis_wait ./vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml
28+
- ./vendor/bin/phpcs src tests --standard=psr2 -sp
29+
30+
after_success:
31+
- travis_retry php vendor/bin/coveralls

composer.json

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,44 @@
11
{
2-
"name": "sturgeon/phparse",
3-
"version": "0.2.1",
2+
"name": "phpversions/phparse",
43
"require-dev": {
54
"php-vcr/php-vcr": "~1.2",
6-
"crysalead/kahlan": "~1.2"
5+
"crysalead/kahlan": "~1.2",
6+
"phpunit/phpunit": "^7.5",
7+
"squizlabs/php_codesniffer": "^3.4",
8+
"phpstan/phpstan": "^0.10.7"
79
},
10+
"authors": [
11+
{
12+
"name": "Phil Sturgeon",
13+
"email": "phil@philsturgeon.co.uk"
14+
},
15+
{
16+
"name": "Matt Trask",
17+
"email": "mjftrask@gmail.com"
18+
}
19+
],
20+
"license": "MIT",
821
"autoload": {
922
"psr-4": {
10-
"Sturgeon\\PHPArse\\": "src"
23+
"PhpVersions\\PHParse\\": "src"
1124
}
1225
},
1326
"require": {
14-
"naneau/semver": "0.0.7.*"
27+
"php": ">=7.2",
28+
"naneau/semver": "0.0.7.*",
29+
"monolog/monolog": "^1.24"
30+
},
31+
"scripts": {
32+
"phpcs": "phpcs src tests --standard=psr2 -sp --colors",
33+
"phpstan": [
34+
"vendor/bin/phpstan analyse src --level max --no-progress",
35+
"vendor/bin/phpstan analyse src --level 4 --no-progress"
36+
],
37+
"phpunit": "phpunit --verbose --colors=always",
38+
"test": [
39+
"@phpstan",
40+
"@phpunit",
41+
"@phpcs"
42+
]
1543
}
1644
}

0 commit comments

Comments
 (0)