From 2fafce900caea0710efd636bfdf4edc374f6d8df Mon Sep 17 00:00:00 2001 From: Ryan Smith <0ryansmith1994@gmail.com> Date: Sun, 8 Oct 2017 22:02:30 +0100 Subject: [PATCH] ci(travis): Ensures semantic release only runs for PHP 7.1 builds. --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0276274..614ca65 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,7 @@ env: # - DB=mysqli before_install: + - echo $TRAVIS_PHP_VERSION - composer install --no-interaction - phpenv config-rm xdebug.ini - nvm install node @@ -47,7 +48,7 @@ script: - cd $TRAVIS_BUILD_DIR after_success: - - if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then + - if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then git fetch --tags; npm i semantic-release; npm i last-release-git; -- GitLab