forked from FriendsOfTYPO3/tea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (58 loc) · 1.36 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
sudo: false
language: php
addons:
apt:
packages:
- parallel
services:
- mysql
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";
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";