Skip to content

Commit 6a7cf46

Browse files
committed
bump version to 7.2, change namespace, add tests
1 parent d94f38d commit 6a7cf46

File tree

11 files changed

+4430
-18
lines changed

11 files changed

+4430
-18
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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,45 @@
11
{
2-
"name": "sturgeon/phparse",
2+
"name": "phpversions/phparse",
33
"version": "0.2.1",
44
"require-dev": {
55
"php-vcr/php-vcr": "~1.2",
6-
"crysalead/kahlan": "~1.2"
6+
"crysalead/kahlan": "~1.2",
7+
"phpunit/phpunit": "^7.5",
8+
"squizlabs/php_codesniffer": "^3.4",
9+
"phpstan/phpstan": "^0.10.7"
710
},
11+
"authors": [
12+
{
13+
"name": "Phil Sturgeon",
14+
"email": "phil@philsturgeon.co.uk"
15+
},
16+
{
17+
"name": "Matt Trask",
18+
"email": "mjftrask@gmail.com"
19+
}
20+
],
21+
"license": "MIT",
822
"autoload": {
923
"psr-4": {
10-
"Sturgeon\\PHPArse\\": "src"
24+
"PhpVersions\\PHParse\\": "src"
1125
}
1226
},
1327
"require": {
14-
"naneau/semver": "0.0.7.*"
28+
"php": ">=7.2",
29+
"naneau/semver": "0.0.7.*",
30+
"monolog/monolog": "^1.24"
31+
},
32+
"scripts": {
33+
"phpcs": "phpcs src tests --standard=psr2 -sp --colors",
34+
"phpstan": [
35+
"vendor/bin/phpstan analyse src --level max --no-progress",
36+
"vendor/bin/phpstan analyse src --level 4 --no-progress"
37+
],
38+
"phpunit": "phpunit --verbose --colors=always",
39+
"test": [
40+
"@phpstan",
41+
"@phpunit",
42+
"@phpcs"
43+
]
1544
}
1645
}

0 commit comments

Comments
 (0)