2017-12-30 21:01:29 +01:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
language: php
|
|
|
|
|
2019-08-07 11:53:21 +02:00
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
|
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=''
|
2018-01-24 15:36:29 +01:00
|
|
|
|
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:
|
2018-10-20 17:14:41 +02:00
|
|
|
- phpenv config-rm xdebug.ini || echo "xdebug not available"
|
2017-12-30 21:01:29 +01:00
|
|
|
|
|
|
|
install:
|
2018-10-13 23:23:27 +02:00
|
|
|
- >
|
2018-10-25 21:46:46 +02:00
|
|
|
composer require typo3/minimal:"$TYPO3" $DEPENDENCIES_PREFERENCE;
|
2018-10-13 23:23:27 +02:00
|
|
|
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;
|
|
|
|
|
|
|
|
- >
|
|
|
|
echo;
|
|
|
|
echo "Running the functional tests";
|
|
|
|
composer ci:tests:functional;
|
2018-10-13 23:23:27 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: test
|
2019-08-07 11:53:21 +02:00
|
|
|
php: "7.2"
|
2018-10-13 23:23:27 +02:00
|
|
|
env: TYPO3=^8.7
|
|
|
|
- stage: test
|
2019-08-07 11:53:21 +02:00
|
|
|
php: "7.1"
|
2018-10-13 23:23:27 +02:00
|
|
|
env: TYPO3=^8.7
|
|
|
|
- stage: test
|
2019-08-07 11:53:21 +02:00
|
|
|
php: "7.0"
|
2018-10-13 23:23:27 +02:00
|
|
|
env: TYPO3=^8.7
|
|
|
|
- stage: test
|
2019-08-07 11:53:21 +02:00
|
|
|
php: "7.2"
|
2018-10-13 23:23:27 +02:00
|
|
|
env: TYPO3=^8.7 DEPENDENCIES_PREFERENCE="--prefer-lowest"
|
|
|
|
- stage: test
|
2019-08-07 11:53:21 +02:00
|
|
|
php: "7.1"
|
2018-10-13 23:23:27 +02:00
|
|
|
env: TYPO3=^8.7 DEPENDENCIES_PREFERENCE="--prefer-lowest"
|
|
|
|
- stage: test
|
2019-08-07 11:53:21 +02:00
|
|
|
php: "7.0"
|
2018-10-13 23:23:27 +02:00
|
|
|
env: TYPO3=^8.7 DEPENDENCIES_PREFERENCE="--prefer-lowest"
|
|
|
|
- stage: release to ter
|
|
|
|
if: tag IS present AND env(TYPO3_ORG_USERNAME) IS present AND env(TYPO3_ORG_PASSWORD) IS present
|
2019-08-07 11:53:21 +02:00
|
|
|
php: "7.0"
|
2018-10-13 23:23:27 +02:00
|
|
|
before_install: skip
|
|
|
|
install: skip
|
|
|
|
before_script: skip
|
|
|
|
script:
|
|
|
|
- >
|
|
|
|
echo;
|
|
|
|
echo "Preparing upload of release ${TRAVIS_TAG} to TER";
|
|
|
|
echo;
|
|
|
|
echo;
|
|
|
|
composer global require helhum/ter-client;
|
|
|
|
- >
|
|
|
|
TAG_MESSAGE=`git tag -n10 -l $TRAVIS_TAG | sed 's/^[0-9.]*[ ]*//g'`;
|
|
|
|
echo;
|
|
|
|
echo "Uploading release ${TRAVIS_TAG} to TER";
|
|
|
|
echo;
|
|
|
|
echo;
|
|
|
|
$HOME/.composer/vendor/bin/ter-client upload tea . -u "$TYPO3_ORG_USERNAME" -p "$TYPO3_ORG_PASSWORD" -m "$TAG_MESSAGE";
|