Skip to content

Commit 48b4a78

Browse files
authored
Check for BC breaks
1 parent 33d6c9e commit 48b4a78

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.travis.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ language: php
22
sudo: false
33

44
cache:
5-
directories:
6-
- vendor
7-
- $HOME/.composer/cache
5+
directories:
6+
- vendor
7+
- $HOME/.composer/cache
8+
9+
env:
10+
global:
11+
- TEST_COMMAND="vendor/bin/phpunit --verbose --coverage-text"
812

913
php:
1014
- 5.6
@@ -16,9 +20,15 @@ matrix:
1620
include:
1721
- php: hhvm
1822
dist: trusty
23+
- php: 7.2
24+
name: Backward compatibillity check
25+
env: DEPENDENCIES="roave/backward-compatibility-check" TEST_COMMAND="./vendor/bin/roave-backward-compatibility-check"
26+
27+
before_install:
28+
- if ! [ -z "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
1929

2030
install:
2131
- travis_retry composer install --no-interaction
2232

2333
script:
24-
- vendor/bin/phpunit --verbose --coverage-text
34+
- $TEST_COMMAND

0 commit comments

Comments
 (0)