From 4a903b2ec0fadc72b102d6ab2cbc6fd117b02f63 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Wed, 9 Jan 2019 20:17:37 +0100 Subject: [PATCH] Added test for BC breaks (#531) * Added test for BC breaks * typo * Disable the BC test * Update .travis.yml * Try to disable test better --- .travis.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 21bcc89..16578c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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