forked from cakephp/queue
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
48 lines (38 loc) · 1.02 KB
/
.travis.yml
File metadata and controls
48 lines (38 loc) · 1.02 KB
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
47
48
language: php
php:
- 7.2
- 7.4
- 'nightly'
env:
global:
- DEFAULT=1
matrix:
fast_finish: true
include:
- php: 7.2
env: PHPCS=1 DEFAULT=0
- php: 7.2
env: STATIC_ANALYSIS=1 DEFAULT=0
install:
- |
if [[ $TRAVIS_PHP_VERSION == 'nightly' ]]; then
composer install --no-interaction --ignore-platform-reqs
elif [[ $STATIC_ANALYSIS == 1 ]]; then
composer install
composer stan-setup
else
composer install
fi
script:
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION != 7.4 ]]; then vendor/bin/phpunit; fi
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.4 ]]; then vendor/bin/phpunit --coverage-clover=clover.xml; fi
- |
if [[ $STATIC_ANALYSIS == 1 ]]; then
vendor/bin/phpstan analyse src/
vendor/bin/psalm.phar
fi
- if [[ $PHPCS == 1 ]]; then composer cs-check; fi
after_success:
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.4 ]]; then bash <(curl -s https://codecov.io/bash); fi
notifications:
email: false