Skip to content

Commit

Permalink
Update travis
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpustulka committed Dec 21, 2023
1 parent da74005 commit 5985759
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
language: php

php:
- 7.2
- 7.4
- 8.1
- 8.2
- 8.3

services:
- mysql
Expand All @@ -21,13 +22,13 @@ matrix:
fast_finish: true

include:
- php: 7.2
- php: 8.1
env: PHPCS=1 DEFAULT=0

- php: 7.2
- php: 8.1
env: STATIC_ANALYSIS=1 DEFAULT=0

- php: 7.2
- php: 8.1
env: PREFER_LOWEST=1

before_script:
Expand All @@ -39,8 +40,6 @@ before_script:
- if [[ $DB = 'mysql' ]]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi
- if [[ $DB = 'pgsql' ]]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi

- if [[ $STATIC_ANALYSIS = 1 ]]; then composer require --dev phpstan/phpstan:^0.12; fi

script:
- |
if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.4 ]]; then
Expand All @@ -51,9 +50,11 @@ script:

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

- if [[ $STATIC_ANALYSIS = 1 ]]; then vendor/bin/phpstan analyse src -l 5; fi

after_success:
- |
if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.2 ]]; then
if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 8.1 ]]; then
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
chmod +x php-coveralls.phar
./php-coveralls.phar
Expand Down

0 comments on commit 5985759

Please sign in to comment.