2017-12-30 21:01:29 +01:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
language: php
|
|
|
|
|
2019-10-29 11:45:33 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- parallel
|
|
|
|
|
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
|
|
|
- >
|
2019-08-12 16:52:51 +02:00
|
|
|
composer require typo3/minimal:"$TYPO3";
|
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-05-25 16:19:12 +02:00
|
|
|
- >
|
|
|
|
echo;
|
|
|
|
echo "Running the functional tests";
|
|
|
|
composer ci:tests:functional;
|
2018-10-13 23:23:27 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
2019-08-12 16:01:12 +02:00
|
|
|
- stage: test
|
|
|
|
php: "7.3"
|
|
|
|
env: TYPO3=^9.5
|
2019-08-12 15:41:55 +02:00
|
|
|
- stage: test
|
|
|
|
php: "7.2"
|
|
|
|
env: TYPO3=^9.5
|
2018-10-13 23:23:27 +02:00
|
|
|
- stage: release to ter
|
|
|
|
if: tag IS present AND env(TYPO3_ORG_USERNAME) IS present AND env(TYPO3_ORG_PASSWORD) IS present
|
2019-08-12 15:47:15 +02:00
|
|
|
php: "7.2"
|
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";
|