Skip to content

Commit

Permalink
Merge pull request #20 from bearsunday/update-qa-configs
Browse files Browse the repository at this point in the history
Update CI configs and README
  • Loading branch information
koriym committed Jul 6, 2020
2 parents 3a7b398 + 95db081 commit 5ebce1c
Showing 1 changed file with 16 additions and 36 deletions.
52 changes: 16 additions & 36 deletions README.md
Expand Up @@ -24,7 +24,7 @@ Local install

composer require --dev bear/qatools

# QA Configs
## QA Configs

cp vendor/bear/qatools/phpunit.xml.dist phpunit.xml
cp vendor/bear/qatools/phpcs.xml .
Expand All @@ -47,53 +47,20 @@ Local install

# Usage

### All

`phpcs`, `phpmd`, `phpunit`, `php-cs-fixer`, `pdepend`, `phploc`, and `php-cs-fixer` will be executed in order. This is the ideal for CI.

global

```
~/.composer/vendor/bin/phpbuild
```

local

```
./vendor/bin/phpbuild
```

# Individual execution

### development
### Test and CS

phpunit

phpunit

phpunit + phpmd + phpcs + php-cs-fixer + phpstan + psalm

phptest

### per commit

php-cs-fixer

php-cs-fixer fix src

phpcs

phpcs --standard=./phpcs.xml src
phpcs --standard=./phpcs.xml --warning-severity=false src
phpcs --standard=vendor/bear/qatools/phpcs.xml --warning-severity=false src

### per deploy

security-checker

security-checker security:check

### code quality
### Code Quality

phpstan

Expand All @@ -114,3 +81,16 @@ phpcpd
phpmetrics

phpmetrics --report-html=build/metrics/ --extensions=php src,composer.json,composer.lock --junit=build/logs/junit.xml

### Security

security-checker

security-checker security:check

### CI build

```
phpbuild
```

0 comments on commit 5ebce1c

Please sign in to comment.