diff --git a/.travis.yml b/.travis.yml index d7f5f62..2b4d7bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,8 +11,10 @@ env: - typo3DatabaseHost=localhost typo3DatabaseName=typo3 typo3DatabaseUsername=travis typo3DatabasePassword='' - TYPO3_PATH_ROOT=$PWD/.Build/public matrix: - - TYPO3_VERSION="^7.6" - - TYPO3_VERSION="^8.7" + - TYPO3_VERSION="^7.6" DEPENDENCIES=latest + - TYPO3_VERSION="^7.6" DEPENDENCIES=oldest + - TYPO3_VERSION="^8.7" DEPENDENCIES=latest + - TYPO3_VERSION="^8.7" DEPENDENCIES=oldest matrix: exclude: @@ -26,8 +28,22 @@ before_install: - phpenv config-rm xdebug.ini install: -- composer require-typo3-version "$TYPO3_VERSION" -- git checkout . +- > + composer require-typo3-version "$TYPO3_VERSION"; +- > + echo; + if [ "$DEPENDENCIES" = "latest" ]; then + echo "Installing the latest dependencies"; + composer update --with-dependencies --prefer-stable --prefer-dist; + else + echo "Installing the lowest dependencies"; + composer update --with-dependencies --prefer-stable --prefer-dist --prefer-lowest; + fi; + composer show; +- > + echo; + echo "Restoring the composer.json"; + git checkout .; script: - >