Skip to content

Commit bd5fbc5

Browse files
authored
Merge pull request #482 from bapcltd-marv/travis/cleanup
Travis/cleanup
2 parents f0bf92f + 5c523cf commit bd5fbc5

File tree

1 file changed

+19
-30
lines changed

1 file changed

+19
-30
lines changed

.travis.yml

Lines changed: 19 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,33 @@ env:
44

55
language: php
66

7+
php:
8+
- 5.6
9+
- 7.0
10+
- 7.1
11+
- 7.2
12+
- 7.3
13+
14+
env:
15+
- phpunitflags="--stop-on-failure --exclude-group=live"
16+
717
matrix:
818
fast_finish: true
919
include:
1020
- php: 5.6
1121
dist: xenial
1222
env:
13-
- analysis=no
14-
- coverage=no
15-
- phpunitflags="--stop-on-failure --exclude-group=live"
1623
- lint="php-cs-fixer"
17-
- php: 7.0
18-
dist: xenial
19-
env:
20-
- analysis=no
21-
- coverage=no
22-
- phpunitflags="--stop-on-failure --exclude-group=live"
23-
- php: 7.1
24-
dist: xenial
25-
env:
26-
- analysis=no
27-
- coverage=no
28-
- phpunitflags="--stop-on-failure --exclude-group=live"
29-
- php: 7.2
30-
dist: xenial
31-
env:
32-
- analysis=no
33-
- coverage=no
34-
- phpunitflags="--stop-on-failure --exclude-group=live"
35-
- php: 7.3
36-
dist: xenial
37-
env:
38-
- analysis=no
39-
- coverage=no
40-
- phpunitflags="--stop-on-failure --exclude-group=live"
24+
- phpunitflags="do not run"
4125
- php: 7.4
4226
dist: bionic
4327
env:
4428
- analysis=yes
29+
- phpunitflags="do not run"
30+
- php: 7.4
31+
dist: bionic
32+
env:
33+
- lint=no
4534
- coverage=yes
4635
- phpunitflags="--stop-on-failure --coverage-clover=clover.xml"
4736

@@ -51,7 +40,7 @@ cache:
5140
- ./psalm/cache
5241

5342
before_script:
54-
- if [[ "$coverage" = "no" ]]; then phpenv config-rm xdebug.ini; fi
43+
- if [[ "$coverage" != "yes" ]]; then phpenv config-rm xdebug.ini; fi
5544
- composer install --no-interaction
5645
- if [[ "$coverage" = "yes" ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; fi
5746
- if [[ "$coverage" = "yes" ]]; then chmod +x ./cc-test-reporter; fi
@@ -60,8 +49,8 @@ before_script:
6049
- if [[ "$analysis" = "yes" ]]; then composer require --dev --update-with-dependencies "phpunit/phpunit:<9" vimeo/psalm psalm/plugin-phpunit maglnet/composer-require-checker:^2.0; fi
6150

6251
script:
63-
- vendor/bin/parallel-lint .php_cs.dist src tests examples
64-
- vendor/bin/phpunit $phpunitflags
52+
- if [[ "$lint" != "no" ]]; then vendor/bin/parallel-lint .php_cs.dist src tests examples; fi
53+
- if [[ "$phpunitflags" != "do not run" ]]; then vendor/bin/phpunit $phpunitflags; fi
6554
- if [[ "$analysis" = "yes" ]]; then vendor/bin/composer-require-checker check ./composer.json; fi
6655
- if [[ "$analysis" = "yes" ]]; then vendor/bin/psalm --show-info=false --shepherd --diff --diff-methods; fi
6756
- if [[ "$lint" = "php-cs-fixer" ]]; then vendor/bin/php-cs-fixer fix --allow-risky=yes --no-interaction --dry-run --diff-format=udiff -v; fi

0 commit comments

Comments
 (0)