-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
executable file
·53 lines (48 loc) · 1.23 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
language: php
php:
- 5.5
- 5.6
- 7.0
- hhvm
cache:
apt: true
env:
global:
- EXTENSIONKEY=themes
matrix:
- TYPO3_BRANCH=master COVERAGE=0
- TYPO3_BRANCH=TYPO3_7-6 COVERAGE=0
matrix:
exclude:
- php: 5.5
env: TYPO3_BRANCH=master COVERAGE=0
- php: 5.6
env: TYPO3_BRANCH=master COVERAGE=0
- php: hhvm
env: TYPO3_BRANCH=master COVERAGE=0
before_script:
- sudo apt-get install parallel
- composer self-update
- cd ..
- git clone --single-branch --branch $TYPO3_BRANCH --depth 1 https://github.com/TYPO3/TYPO3.CMS.git typo3_core
- mv typo3_core/* .
- composer install
- mkdir -p uploads typo3temp typo3conf/ext
- mv $EXTENSIONKEY typo3conf/ext/
script:
- >
echo;
echo "Running unit tests";
/bin/bash -c "
if [ -d typo3conf/ext/$EXTENSIONKEY/Tests/Unit/ ]; then
./bin/phpunit --colors -c typo3/sysext/core/Build/UnitTests.xml typo3conf/ext/$EXTENSIONKEY/Tests/Unit/
fi
"
- >
echo;
echo "Running functional tests";
/bin/bash -c "
if [ -d typo3conf/ext/$EXTENSIONKEY/Tests/Functional/ ]; then
./bin/phpunit --colors -c typo3/sysext/core/Build/FunctionalTests.xml typo3conf/ext/$EXTENSIONKEY/Tests/Functional/
fi
"