Skip to content

Commit 7ebda44

Browse files
committed
Update travis config
1 parent d57906b commit 7ebda44

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.travis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ language: php
33
php:
44
- 7.2
55
- 7.3
6+
- 7.4
7+
8+
services:
9+
- mysql
10+
- postgresql
611

712
env:
813
matrix:
@@ -27,15 +32,15 @@ matrix:
2732
env: PREFER_LOWEST=1
2833

2934
before_script:
30-
- if [[ $TRAVIS_PHP_VERSION != 7.2 ]]; then phpenv config-rm xdebug.ini; fi
35+
- phpenv config-rm xdebug.ini
3136

3237
- if [[ $PREFER_LOWEST != 1 ]]; then composer update --no-interaction; fi
3338
- if [[ $PREFER_LOWEST == 1 ]]; then composer update --no-interaction --prefer-lowest --prefer-stable; fi
3439

3540
- if [[ $DB = 'mysql' ]]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi
3641
- if [[ $DB = 'pgsql' ]]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi
3742

38-
- if [[ $PHPCS = 1 ]]; then composer require cakephp/cakephp-codesniffer:dev-next; fi
43+
- if [[ $PHPCS = 1 ]]; then composer require cakephp/cakephp-codesniffer:^4.0; fi
3944

4045
script:
4146
- |
@@ -47,7 +52,7 @@ script:
4752

4853
- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi
4954

50-
- if [[ $STATIC_ANALYSIS = 1 ]]; then composer require --dev vimeo/psalm && vendor/bin/psalm src; fi
55+
- if [[ $STATIC_ANALYSIS = 1 ]]; then composer require --dev psalm/phar:^3.7 && vendor/bin/psalm.phar src; fi
5156

5257
after_success:
5358
- |

0 commit comments

Comments
 (0)