This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
80 lines (73 loc) · 1.98 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
68
69
70
71
72
73
74
75
76
77
78
79
80
language: php
sudo: false
addons:
apt:
packages:
- parallel
cache:
directories:
- $HOME/.composer/cache
before_install:
- if php -i | grep -q xdebug; then phpenv config-rm xdebug.ini; fi;
- if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi;
before_script:
- |
set -e
composer require nimut/typo3-complete "$TYPO3_VERSION";
git checkout composer.json;
export TYPO3_PATH_WEB=$PWD/.Build/public;
script:
- |
set -e
if [ "$TRAVIS_ALLOW_FAILURE" == "true" ]; then echo "skip testing"; return; fi;
echo "Running unit tests";
composer test:phpunit;
echo "Running php lint";
composer test:phplint
jobs:
fast_finish: true
include:
- stage: test
php: 7.3
env: TYPO3_VERSION=^8.7
- stage: test
php: 7.2
env: TYPO3_VERSION=^8.7
- stage: test
php: 7.1
env: TYPO3_VERSION=^8.7
- stage: test
php: 7.0
env: TYPO3_VERSION=^8.7
- stage: test
php: 7.2
env: TYPO3_VERSION=^7.6
- stage: test
php: 7.1
env: TYPO3_VERSION=^7.6
- stage: test
php: 7.0
env: TYPO3_VERSION=^7.6
- stage: test
php: 5.6
env: TYPO3_VERSION=^7.6
- stage: test
dist: trusty
php: 5.5
env: TYPO3_VERSION=^7.6
- stage: 🚢 to TER
if: tag IS present
php: 7.0
install: skip
before_script: skip
script:
- |
if [ -n "$TYPO3_ORG_USERNAME" ] && [ -n "$TYPO3_ORG_PASSWORD" ]; then
echo -e "Preparing upload of release ${TRAVIS_TAG} to TER\n";
# Install ter client
composer global require helhum/ter-client
# Upload
TAG_MESSAGE=`git tag -n10 -l $TRAVIS_TAG | sed 's/^[0-9.]*[ ]*//g'`
echo "Uploading release ${TRAVIS_TAG} to TER"
$HOME/.composer/vendor/bin/ter-client upload caretaker . -u "$TYPO3_ORG_USERNAME" -p "$TYPO3_ORG_PASSWORD" -m "$TAG_MESSAGE"
fi;