File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
vendor
2
2
.idea
3
3
composer.phar
4
- clover.xml
4
+ / clover.xml
5
5
build
6
6
/xhprof_report. *
7
- benchmark-result.json
7
+ benchmark-result.json
8
+ /coverage.xml
Original file line number Diff line number Diff line change 10
10
- 5.4
11
11
12
12
sudo : false
13
+ dist : trusty
13
14
14
15
# # Cache composer bits
15
16
cache :
19
20
before_script :
20
21
- composer install --dev --no-interaction --prefer-dist
21
22
- if ! [[ $(phpenv version-name) =~ 7.3 ]] ; then phpenv config-rm xdebug.ini || true ; fi
22
- - if [[ $(phpenv version-name) =~ 7.2 ]] ; then test -f $HOME/.cache/composer/phpstan-0.11.8.phar || wget https://github.com/phpstan/phpstan/releases/download/0.11.8/phpstan.phar -O $HOME/.cache/composer/phpstan-0.11.8.phar; fi
23
23
24
24
matrix :
25
25
allow_failures :
@@ -28,7 +28,8 @@ matrix:
28
28
29
29
script :
30
30
- php -derror_reporting="E_ALL & ~E_DEPRECATED" ./vendor/bin/phpunit -v --configuration phpunit.xml --coverage-text --coverage-clover=coverage.xml
31
- - if [[ $(phpenv version-name) =~ 7.2 ]] ; then php $HOME/.cache/composer/phpstan-0.11.8.phar analyze -l 7 -c phpstan.neon ./src; fi
31
+ - if [[ $(phpenv version-name) =~ 7.3 ]] ; then make test-coverage; else make test; fi
32
+ - if [[ $(phpenv version-name) =~ 7.2 ]] ; then make lint; fi
32
33
33
34
after_script :
34
35
- if [[ $(phpenv version-name) =~ 7.3 ]] ; then bash <(curl -s https://codecov.io/bash); fi
Original file line number Diff line number Diff line change
1
+ PHPSTAN_VERSION ?= 0.11.15
2
+
1
3
deps :
2
4
@git submodule init && git submodule update
3
5
4
6
lint :
5
- @test -f $$ HOME/.cache/composer/phpstan-0.11.8. phar || wget https://github.com/phpstan/phpstan/releases/download/0.11.8 /phpstan.phar -O $$ HOME/.cache/composer/phpstan-0.11.8. phar
6
- @php $$ HOME/.cache/composer/phpstan-0.11.8 .phar analyze -l 7 -c phpstan.neon ./src
7
+ @test -f ${ HOME} /.cache/composer/phpstan-${PHPSTAN_VERSION} . phar || (mkdir -p ${HOME} /.cache/composer/ && wget https://github.com/phpstan/phpstan/releases/download/${PHPSTAN_VERSION} /phpstan.phar -O ${ HOME} /.cache/composer/phpstan-${PHPSTAN_VERSION} . phar)
8
+ @php $$ HOME/.cache/composer/phpstan-${PHPSTAN_VERSION} .phar analyze -l 7 -c phpstan.neon ./src
7
9
8
10
docker-lint :
9
11
@docker run -v $$ PWD:/app --rm phpstan/phpstan analyze -l 7 -c phpstan.neon ./src
12
14
@php -derror_reporting=" E_ALL & ~E_DEPRECATED" vendor/bin/phpunit
13
15
14
16
test-coverage :
15
- @php -derror_reporting=" E_ALL & ~E_DEPRECATED" -dzend_extension=xdebug.so vendor/bin/phpunit --coverage-text
17
+ @php -derror_reporting=" E_ALL & ~E_DEPRECATED" -dzend_extension=xdebug.so vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
Original file line number Diff line number Diff line change 1
1
parameters :
2
+ inferPrivatePropertyTypeFromConstructor : true
2
3
ignoreErrors :
3
4
- '#Access to an undefined property static\ (Swaggest\\JsonSchema\\JsonSchema\ )\|Swaggest\\JsonSchema\\Constraint\\Properties:: #'
4
5
- ' #Access to an undefined property .+Swaggest\\JsonSchema\\NameMirror::.+ #'
You can’t perform that action at this time.
0 commit comments