mjml-typo3/.travis.yml

63 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2017-12-15 21:46:24 +01:00
dist: trusty
sudo: false
language: php
2017-12-15 21:46:24 +01:00
cache:
directories:
- $HOME/.composer/cache
2018-01-02 15:29:25 +01:00
# This is executed for all stages
before_install:
- composer self-update
- composer --version
- if php -i | grep -q xdebug; then phpenv config-rm xdebug.ini; fi
install:
2020-01-24 11:20:49 +01:00
- composer require typo3/minimal="$TYPO3_VERSION"
2017-12-16 18:20:56 +01:00
- composer install
2017-12-15 21:46:24 +01:00
jobs:
2018-01-02 15:29:25 +01:00
fast_finish: true
2017-12-15 21:46:24 +01:00
include:
- php: 7.1
env: TYPO3_VERSION=^8.7
- php: 7.2
env: TYPO3_VERSION=^8.7
2020-01-24 11:20:49 +01:00
- php: 7.3
env: TYPO3_VERSION=^8.7
- php: 7.2
env: TYPO3_VERSION=^9.5
- php: 7.3
env: TYPO3_VERSION=^9.5
2020-09-22 17:39:46 +02:00
- php: 7.4
env: TYPO3_VERSION=^9.5
2017-12-15 21:46:24 +01:00
- stage: test
2020-01-24 11:20:49 +01:00
php: 7.2
env: TYPO3_VERSION=^9.5
script:
- composer lint
- composer cgl
- composer test
2017-12-15 21:46:24 +01:00
- stage: deploy
if: tag IS present
2020-01-24 11:20:49 +01:00
php: 7.2
2017-12-15 21:46:24 +01:00
before_install: skip
install: skip
before_script: skip
script: |
echo -e "Preparing upload of release ${TRAVIS_TAG} to TER\n"
TAG_ANNOTATION="$(git tag -n -l $TRAVIS_TAG)"
TAG_MESSAGE="${TAG_ANNOTATION#* }"
git reset --hard
git clean -xfd
export PATH=$PATH:$(composer global config bin-dir --absolute 2>/dev/null)
composer global require helhum/ter-client dev-master
echo "Uploading release ${TRAVIS_TAG} to TER"
ter-client upload $(composer config extra.typo3/cms.extension-key) . -u "$TYPO3_ORG_USERNAME" -p "$TYPO3_ORG_PASSWORD" -m "$TAG_MESSAGE"