[TASK] Add travis.yml

This commit is contained in:
Daniel Huf 2017-12-15 21:46:24 +01:00
parent f1a35af9d4
commit b1a385fc6d
2 changed files with 49 additions and 0 deletions

38
.travis.yml Normal file
View file

@ -0,0 +1,38 @@
dist: trusty
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache
install:
- composer require typo3/cms="$TYPO3_VERSION"
jobs:
include:
- php: 7.1
env: TYPO3_VERSION=^8.7
- php: 7.2
env: TYPO3_VERSION=^8.7
- stage: deploy
if: tag IS present
php: 7.1
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"

View file

@ -18,5 +18,16 @@
"post-install-cmd": [
"npm install"
]
},
"replace": {
"mjml": "self.version",
"typo3-ter/mjml": "self.version"
},
"extra": {
"typo3/cms": {
"extension-key": "mjml",
"cms-package-dir": "{$vendor-dir}/typo3/cms",
"web-dir": "web"
}
}
}