Skip to content

Commit 9c4a018

Browse files
committed
Update to make it slim 4 compatible
1 parent 6b399ae commit 9c4a018

1 file changed

Lines changed: 22 additions & 7 deletions

File tree

.travis.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
11
language: php
22

3-
php:
4-
- 5.5
5-
- 5.6
6-
- 7.0
7-
- 7.1
3+
dist: trusty
84

9-
before_script: composer install
5+
matrix:
6+
include:
7+
- php: 7.2
8+
- php: 7.3
9+
- php: 7.4
10+
env: ANALYSIS='true'
11+
- php: nightly
12+
allow_failures:
13+
- php: nightly
1014

11-
script: phpunit --coverage-text
15+
before_script:
16+
- if [[ "$ANALYSIS" == 'true' ]]; then composer require php-coveralls/php-coveralls:^2.1.0 ; fi
17+
- composer install -n
18+
19+
script:
20+
- if [[ "$ANALYSIS" != 'true' ]]; then vendor/bin/phpunit ; fi
21+
- if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
22+
- if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpcs ; fi
23+
- if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpstan analyse src ; fi
24+
25+
after_success:
26+
- if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/php-coveralls --coverage_clover=clover.xml -v ; fi

0 commit comments

Comments
 (0)