forked from cakephp/debug_kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (35 loc) · 992 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
language: php
php:
- 7.2
- 7.3
- 7.4
dist: xenial
services:
- postgresql
- mysql
env:
matrix:
- DB=mysql db_dsn='mysql://[email protected]/cakephp_test'
- DB=pgsql db_dsn='postgres://[email protected]/cakephp_test'
- DB=sqlite
global:
- DEFAULT=1
matrix:
fast_finish: true
include:
- php: 7.3
env: CHECKS=1 DEFAULT=0
allow_failures:
- php: 7.4
install:
- composer install --prefer-dist --no-interaction
before_script:
- if [[ $DB == 'mysql' ]]; then mysql -u root -e 'CREATE DATABASE cakephp_test;'; fi
- if [[ $DB == 'pgsql' ]]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi
- if [[ $CHECKS == 1 ]]; then composer require --dev psalm/phar:^3.6; fi
script:
- if [[ $DEFAULT == 1 ]]; then vendor/bin/phpunit; fi
- if [[ $CHECKS == 1 ]]; then vendor/bin/psalm.phar --show-info=false; fi
- if [[ $CHECKS == 1 ]]; then vendor/bin/phpcs --colors --parallel=16 -p src/ tests/; fi
notifications:
email: false