Skip to content

Commit 97e973c

Browse files
committed
CI
1 parent 1d22060 commit 97e973c

File tree

3 files changed

+18
-31
lines changed

3 files changed

+18
-31
lines changed

.stickler.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.travis.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,41 @@
11
language: php
22

33
php:
4-
- 5.6
5-
- 7.0
6-
- 7.1
74
- 7.2
8-
9-
env:
10-
global:
11-
- DB=mysql db_dsn='mysql://[email protected]/cakephp_test'
5+
- 7.4
126

137
matrix:
148
fast_finish: true
159

1610
include:
17-
- php: 7.1
11+
- php: 7.2
1812
env: PHPCS=1 DEFAULT=0
1913

20-
- php: 7.1
14+
- php: 7.2
2115
env: PHPSTAN=1 DEFAULT=0
2216

23-
- php: 5.6
17+
- php: 7.2
2418
env: PREFER_LOWEST=1
2519

2620
before_script:
27-
- if [[ $TRAVIS_PHP_VERSION != 7.1 ]]; then phpenv config-rm xdebug.ini; fi
21+
- if [[ $TRAVIS_PHP_VERSION != 7.4 ]]; then phpenv config-rm xdebug.ini; fi
2822

2923
- if [[ $PREFER_LOWEST != 1 ]]; then composer update --no-interaction; fi
3024
- if [[ $PREFER_LOWEST == 1 ]]; then composer update --no-interaction --prefer-lowest --prefer-stable; fi
3125

32-
- if [[ $DEFAULT = 1 ]]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi
33-
34-
- if [[ $PHPCS = 1 ]]; then composer require cakephp/cakephp-codesniffer:^3.0; fi
35-
- if [[ $PHPSTAN = 1 ]]; then composer require phpstan/phpstan; fi
26+
- if [[ $PHPCS == 1 ]]; then composer require cakephp/cakephp-codesniffer:^4.0; fi
27+
- if [[ $PHPSTAN == 1 ]]; then composer require phpstan/phpstan; fi
3628

3729
script:
38-
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.1 ]]; then vendor/bin/phpunit --coverage-clover=clover.xml; fi
39-
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.1 ]]; then vendor/bin/phpunit; fi
30+
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.4 ]]; then vendor/bin/phpunit --coverage-clover=clover.xml; fi
31+
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION != 7.4 ]]; then vendor/bin/phpunit; fi
4032

41-
- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi
33+
- if [[ $PHPCS == 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi
4234

43-
- if [[ $PHPSTAN = 1 ]]; then vendor/bin/phpstan analyse -c phpstan.neon -l 5 src; fi
35+
- if [[ $PHPSTAN == 1 ]]; then vendor/bin/phpstan analyse src; fi
4436

4537
after_success:
46-
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.1 ]]; then bash <(curl -s https://codecov.io/bash); fi
38+
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.4 ]]; then bash <(curl -s https://codecov.io/bash); fi
4739

4840
notifications:
4941
email: false

phpstan.neon

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
parameters:
2+
level: 6
3+
checkMissingIterableValueType: false
24
ignoreErrors:
3-
- '#Call to an undefined method object::getConfig\(\)#'
5+
-
6+
message: "#^Ternary operator condition is always true\\.$#"
7+
count: 1
8+
path: src/Auth/JwtAuthenticate.php

0 commit comments

Comments
 (0)