-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
55 lines (46 loc) · 1.3 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
language: php
php:
- 7.2
- 7.3
- 7.4
- 8.0
sudo: false
addons:
apt:
packages:
- parallel
env:
global:
- EXTENSIONKEY=piwikintegration
matrix:
- TYPO3_VERSION="^10.4.0"
- TYPO3_VERSION="^11.5.0"
#- TYPO3_VERSION="dev-main"
cache:
directories:
- $HOME/.composer/cache
before_install:
- phpenv config-rm xdebug.ini
- composer --version
- composer self-update
before_script:
- composer require typo3/minimal="$TYPO3_VERSION"
# Restore composer.json
- git checkout composer.json
- export TYPO3_PATH_WEB=$PWD/.Build/Web
script:
- >
echo;
echo "Running unit tests";
if [ -d "Tests/Unit" ]; then .Build/bin/phpunit -c .Build/vendor/typo3/cms/typo3/sysext/core/Build/UnitTests.xml Tests/Unit/; fi
- >
echo;
echo "Running php lint";
find . -name \*.php ! -path "./.Build/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
- >
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 --colors -c .Build/vendor/typo3/cms/typo3/sysext/core/Build/FunctionalTests.xml {}'