Remove bitbucket pipeline, update readme with test tools
This commit is contained in:
10
Readme.md
10
Readme.md
@@ -63,6 +63,16 @@ DOUBLE="This will be ignored"
|
|||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
|
### Phan
|
||||||
|
|
||||||
|
`vendor/bin/phan
|
||||||
|
|
||||||
|
### PHPstan
|
||||||
|
|
||||||
|
`vendor/bin/phpstan --analyze-twice`
|
||||||
|
|
||||||
|
### PHPUnit
|
||||||
|
|
||||||
Unit tests have to be run from base folder with
|
Unit tests have to be run from base folder with
|
||||||
|
|
||||||
`vendor/bin/phpunit test/phpUnitTests/`
|
`vendor/bin/phpunit test/phpUnitTests/`
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
# Template PHP Build
|
|
||||||
|
|
||||||
# This template allows you to validate your PHP application.
|
|
||||||
# The workflow allows running tests and code linting on the default branch.
|
|
||||||
|
|
||||||
image: composer:2.1
|
|
||||||
|
|
||||||
|
|
||||||
pipelines:
|
|
||||||
default:
|
|
||||||
- parallel:
|
|
||||||
- step:
|
|
||||||
name: Test
|
|
||||||
script:
|
|
||||||
- composer require phpunit/phpunit:^9
|
|
||||||
- ./vendor/bin/phpunit ./test/phpUnitTests
|
|
||||||
caches:
|
|
||||||
- composer
|
|
||||||
- step:
|
|
||||||
name: Lint
|
|
||||||
script:
|
|
||||||
- composer require overtrue/phplint:8.1.x-dev
|
|
||||||
- ./vendor/bin/phplint ./ --exclude=vendor
|
|
||||||
caches:
|
|
||||||
- composer
|
|
||||||
@@ -26,7 +26,6 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^9",
|
"phpunit/phpunit": "^9",
|
||||||
"overtrue/phplint": "8.1.x-dev",
|
|
||||||
"phpstan/phpstan": "1.10.x-dev",
|
"phpstan/phpstan": "1.10.x-dev",
|
||||||
"phan/phan": "v5.x-dev"
|
"phan/phan": "v5.x-dev"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user