Added test for BC breaks (#531)

* Added test for BC breaks

* typo

* Disable the BC test

* Update .travis.yml

* Try to disable test better
This commit is contained in:
Tobias Nyholm 2019-01-09 20:17:37 +01:00 committed by GitHub
parent 6e65a0613e
commit 4a903b2ec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,14 +24,17 @@ matrix:
include:
- php: 7.1
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" PREFER_COVERAGE=true
- name: Backward compatibility test (Disabled)
php: 7.3
env: DEPENDENCIES="roave/backward-compatibility-check"
script: ./vendor/bin/roave-backward-compatibility-check || true
before_install:
- if [[ "$PREFER_COVERAGE" = true ]] && [[ "$TRAVIS_PULL_REQUEST" = false ]]; then TEST_COMMAND="composer test-coverage" COVERAGE=true; fi
- if ! [ -z "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
install:
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction
before_script:
- if [[ "COVERAGE" = true ]]; then TEST_COMMAND="composer test-coverage"; fi
- if ! [[ "$TRAVIS_PULL_REQUEST" = false ]]; then TEST_COMMAND="composer test"; fi
- if [[ "$PREFER_COVERAGE" = true ]] && [[ "$TRAVIS_PULL_REQUEST" = false ]]; then TEST_COMMAND="composer test-coverage" COVERAGE=true; fi
- composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
script:
- composer validate --strict --no-check-lock