mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-09-20 08:36:14 +02:00
tea/.travis.yml
Oliver Klee adf0b308a1
[TASK] Update the dev dependencies (#36)
Also drop a redundant `--prefer-stable --prefer-dist` from the
installation process as this already is the configured default
in the `composer.json`.
2018-10-25 21:46:46 +02:00

86 lines
1.8 KiB
YAML

sudo: false
language: php
env:
global:
- typo3DatabaseHost=localhost typo3DatabaseName=typo3 typo3DatabaseUsername=travis typo3DatabasePassword=''
cache:
directories:
- .Build/vendor
- $HOME/.composer/cache
before_install:
- phpenv config-rm xdebug.ini || echo "xdebug not available"
install:
- >
composer require typo3/minimal:"$TYPO3" $DEPENDENCIES_PREFERENCE;
composer show;
- >
echo;
echo "Restoring the composer.json";
git checkout .;
script:
- >
echo;
echo "Linting all PHP files";
composer ci:php:lint;
- >
echo;
echo "Linting all TypoScript files";
composer ci:ts:lint;
- >
echo;
echo "Running the unit tests";
composer ci:tests:unit;
- >
echo;
echo "Running the functional tests";
composer ci:tests:functional;
jobs:
include:
- stage: test
php: 7.2
env: TYPO3=^8.7
- stage: test
php: 7.1
env: TYPO3=^8.7
- stage: test
php: 7.0
env: TYPO3=^8.7
- stage: test
php: 7.2
env: TYPO3=^8.7 DEPENDENCIES_PREFERENCE="--prefer-lowest"
- stage: test
php: 7.1
env: TYPO3=^8.7 DEPENDENCIES_PREFERENCE="--prefer-lowest"
- stage: test
php: 7.0
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
php: 7.0
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";