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 3
/
Copy path.travis.yml
88 lines (78 loc) · 2.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
dist: trusty
language: php
matrix:
fast_finish: true
include:
- php: 7.4
env: TYPO3=^8.7
- php: 7.3
env: TYPO3=^8.7
- php: 7.2
env: TYPO3=^8.7
- php: 7.1
env: TYPO3=^8.7
- php: 7.0
env: TYPO3=^8.7
- php: 7.2
env: TYPO3=^7.6
- php: 7.1
env: TYPO3=^7.6
- php: 7.0
env: TYPO3=^7.6
- php: 5.6
env: TYPO3=^7.6
- php: 5.5
env: TYPO3=^7.6
- stage: Deploy 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_mattermost . -u "$TYPO3_ORG_USERNAME" -p "$TYPO3_ORG_PASSWORD" -m "$TAG_MESSAGE"
fi;
addons:
apt:
packages:
- parallel
cache:
directories:
- $HOME/.composer/cache
sudo: false
before_install:
- if php -i | grep -q xdebug; then phpenv config-rm xdebug.ini; fi
before_script:
- >
if [[ "$TYPO3" = *"dev"* ]]; then
composer remove thibaud-dauce/mattermost-php --no-update;
fi
- composer require typo3/cms="$TYPO3"
- git checkout composer.json
- mkdir -p .Build/Web/typo3conf/ext/
- if [ ! -L .Build/Web/typo3conf/ext/caretaker_mattermost ]; then ln -snvf ../../../../. .Build/Web/typo3conf/ext/caretaker_mattermost; fi
- 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;
find . -name \*.php ! -path "./.Build/*" ! -path "./Resources/Php/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;;