2017-12-30 21:01:29 +01:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
language: php
|
|
|
|
|
2018-01-10 22:23:45 +01:00
|
|
|
php:
|
|
|
|
- 7.0
|
|
|
|
- 7.1
|
2018-05-25 22:57:40 +02:00
|
|
|
- 7.2
|
2018-01-10 22:23:45 +01:00
|
|
|
|
2018-01-24 15:36:29 +01:00
|
|
|
env:
|
2018-05-25 16:19:12 +02:00
|
|
|
global:
|
|
|
|
- typo3DatabaseHost=localhost typo3DatabaseName=typo3 typo3DatabaseUsername=travis typo3DatabasePassword=''
|
|
|
|
- TYPO3_PATH_ROOT=$PWD/.Build/public
|
|
|
|
matrix:
|
2018-05-25 17:27:48 +02:00
|
|
|
- TYPO3_VERSION="^7.6" DEPENDENCIES=latest
|
|
|
|
- TYPO3_VERSION="^7.6" DEPENDENCIES=oldest
|
|
|
|
- TYPO3_VERSION="^8.7" DEPENDENCIES=latest
|
|
|
|
- TYPO3_VERSION="^8.7" DEPENDENCIES=oldest
|
2018-01-24 15:36:29 +01:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
|
2017-12-30 21:01:29 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
2018-01-10 22:23:45 +01:00
|
|
|
- .Build/vendor
|
2017-12-30 21:01:29 +01:00
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
2018-01-10 22:23:45 +01:00
|
|
|
before_install:
|
|
|
|
- phpenv config-rm xdebug.ini
|
2017-12-30 21:01:29 +01:00
|
|
|
|
|
|
|
install:
|
2018-05-25 17:27:48 +02:00
|
|
|
- >
|
|
|
|
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 .;
|
2017-12-30 21:01:29 +01:00
|
|
|
|
|
|
|
script:
|
2018-01-13 00:26:51 +01:00
|
|
|
- >
|
|
|
|
echo;
|
|
|
|
echo "Linting all PHP files";
|
2018-01-27 16:04:27 +01:00
|
|
|
composer ci:php:lint;
|
2018-01-27 17:44:42 +01:00
|
|
|
|
|
|
|
- >
|
|
|
|
echo;
|
|
|
|
echo "Linting all TypoScript files";
|
|
|
|
composer ci:ts:lint;
|
2018-05-25 16:19:12 +02:00
|
|
|
|
|
|
|
- >
|
|
|
|
echo;
|
|
|
|
echo "Running the unit tests";
|
|
|
|
composer ci:tests:unit;
|
|
|
|
|
2018-05-26 19:50:59 +02:00
|
|
|
- >
|
|
|
|
echo;
|
|
|
|
echo "Running the model tests";
|
|
|
|
.Build/vendor/bin/phpunit -c Configuration/PHPUnit/ModelTests.xml;
|
|
|
|
|
2018-05-25 16:19:12 +02:00
|
|
|
- >
|
|
|
|
echo;
|
|
|
|
echo "Running the functional tests";
|
|
|
|
composer ci:tests:functional;
|