-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
92 lines (82 loc) · 2.25 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
81
82
83
84
85
86
87
88
89
90
91
92
language: php
#notifications:
# email:
# recipients:
# on_success: change
# on_failure: always
#php:
# - 5.6
# - 7.0
# - 7.1
# - 7.2
#env:
# - TYPO3_CORE="typo3/cms=^6.2.14"
# - TYPO3_CORE="typo3/cms=^7.6.0"
# - TYPO3_CORE="typo3/cms=^8.7.0"
# - TYPO3_CORE="typo3/minimal=^9.5"
os: linux
dist: xenial
addons:
apt:
packages:
- parallel
cache:
directories:
- $HOME/.composer/cache
before_install:
- phpenv config-rm xdebug.ini
- composer self-update
- composer --version
before_script:
# first remove the "typo3/cms-core". for typo3 7, 8 and 9 it will be "typo3/cms"
- composer remove --no-update typo3/cms typo3/cms-core
- composer require "$TYPO3_CORE"
# Restore composer.json
- git checkout composer.json
- export TYPO3_PATH_WEB=$PWD/.Build/Web
script:
- >
echo;
echo "Running unit tests";
.Build/bin/phpunit
# disabled, because there are direct tx_rnbase::load calls in the files!
# - >
# echo;
# echo "Running php lint";
# find . -name \*.php ! -path "./.Build/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
jobs:
include:
- stage: test
php: 7.1
env: TYPO3_CORE="typo3/cms=^8.7.0"
- stage: test
php: 7.2
env: TYPO3_CORE="typo3/cms=^8.7.0"
- stage: test
php: 7.2
env: TYPO3_CORE="typo3/minimal=^9.5"
- stage: test
php: 7.2
env: TYPO3_CORE="typo3/minimal=^10.4"
- stage: release
if: tag IS present AND env(TYPO3_ORG_USERNAME) IS present AND env(TYPO3_ORG_PASS) 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 "Release comment ${TAG_MESSAGE}";
echo;
echo;
$HOME/.config/composer/vendor/bin/ter-client upload t3sportstats . -u "$TYPO3_ORG_USERNAME" -p "$TYPO3_ORG_PASS" -m "$TAG_MESSAGE";