forked from IchHabRecht/multicolumn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
134 lines (123 loc) · 3.38 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
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
install:
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then composer config platform.php 7.1; fi;
- composer require typo3/cms="$TYPO3"
- git checkout composer.json
- export TYPO3_PATH_WEB=$PWD/.Build/Web
script:
- >
echo;
echo "Running functional tests";
echo;
echo;
export typo3DatabaseName="typo3";
export typo3DatabaseHost="localhost";
export typo3DatabaseUsername="root";
export typo3DatabasePassword="";
find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo "Running functional test suite {}"; .Build/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml {}';
- >
echo;
echo "Running php lint";
echo;
echo;
if [ "$TYPO3" == "^7.6" ] || [ "$TYPO3" == "7.x-dev as 7.6.0" ]; then rm -f Classes/ContextMenu/ItemProvider.php; fi;
find . -name \*.php ! -path "./.Build/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;;
jobs:
fast_finish: true
allow_failures:
- php: 7.2
- env: TYPO3="dev-master as 8.7.0"
include:
- stage: test
php: 7.2
env: TYPO3=^8.0
- stage: test
php: 7.2
env: TYPO3="8.x-dev as 8.7.0"
- stage: test
php: 7.2
env: TYPO3="dev-master as 8.7.0"
- stage: test
php: 7.2
env: TYPO3=^7.6
- stage: test
php: 7.2
env: TYPO3="7.x-dev as 7.6.0"
- stage: test
php: 7.1
env: TYPO3=^8.0
- stage: test
php: 7.1
env: TYPO3="8.x-dev as 8.7.0"
- stage: test
php: 7.1
env: TYPO3="dev-master as 8.7.0"
- stage: test
php: 7.1
env: TYPO3=^7.6
- stage: test
php: 7.1
env: TYPO3="7.x-dev as 7.6.0"
- stage: test
php: 7.0
env: TYPO3=^8.0
- stage: test
php: 7.0
env: TYPO3="8.x-dev as 8.7.0"
- stage: test
php: 7.0
env: TYPO3="dev-master as 8.7.0"
- stage: test
php: 7.0
env: TYPO3=^7.6
- stage: test
php: 7.0
env: TYPO3="7.x-dev as 7.6.0"
- stage: test
php: 5.6
env: TYPO3=^7.6
- stage: test
php: 5.6
env: TYPO3="7.x-dev as 7.6.0"
- stage: test
php: 5.5
env: TYPO3=^7.6
- stage: test
php: 5.5
env: TYPO3="7.x-dev as 7.6.0"
- stage: publish to ter
if: tag IS present
php: 7.1
before_install: skip
install: skip
before_script: skip
script:
- |
if [ -n "$TRAVIS_TAG" ] && [ -n "$TYPO3_ORG_USERNAME" ] && [ -n "$TYPO3_ORG_PASSWORD" ]; then
# Install requirements
echo
echo "Preparing upload of release ${TRAVIS_TAG} to TER"
echo
echo
composer install
composer require --dev helhum/ter-client dev-master
# Cleanup before we upload
git reset --hard HEAD && git clean -fx
# Upload
TAG_MESSAGE=`git tag -n10 -l $TRAVIS_TAG | sed 's/^[0-9.]*[ ]*//g'`
echo
echo "Uploading release ${TRAVIS_TAG} to TER"
echo
echo
.Build/bin/ter-client upload multicolumn . -u "$TYPO3_ORG_USERNAME" -p "$TYPO3_ORG_PASSWORD" -m "$TAG_MESSAGE"
fi;