mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 04:56:12 +01:00
14602e19b5
Downgrades of Composer packages do not work reliably if a higher version of a package already is installed in `vendor/`. This causes builds to use higher versions of packages than intended if Travis CI has the corresponding version in the cached and restored `vendor/` folder.
66 lines
1.3 KiB
YAML
66 lines
1.3 KiB
YAML
sudo: false
|
|
|
|
language: php
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- parallel
|
|
|
|
services:
|
|
- mysql
|
|
|
|
env:
|
|
global:
|
|
- typo3DatabaseHost=localhost typo3DatabaseName=typo3 typo3DatabaseUsername=travis typo3DatabasePassword=''
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|
|
|
|
before_install:
|
|
- phpenv config-rm xdebug.ini || echo "xdebug not available"
|
|
|
|
install:
|
|
- >
|
|
composer require typo3/minimal:"$TYPO3";
|
|
composer show;
|
|
- >
|
|
echo;
|
|
echo "Restoring the composer.json";
|
|
git checkout .;
|
|
|
|
script:
|
|
- >
|
|
echo;
|
|
echo "Running the functional tests";
|
|
composer ci:tests:functional;
|
|
|
|
jobs:
|
|
include:
|
|
- stage: test
|
|
php: "7.3"
|
|
env: TYPO3=^9.5
|
|
- stage: test
|
|
php: "7.2"
|
|
env: TYPO3=^9.5
|
|
- stage: release to ter
|
|
if: tag IS present AND env(TYPO3_ORG_USERNAME) IS present AND env(TYPO3_ORG_PASSWORD) IS present
|
|
php: "7.2"
|
|
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";
|