-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
61 lines (54 loc) · 1.42 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
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
env:
- TYPO3_BRANCH=master COVERAGE=0
- TYPO3_BRANCH=TYPO3_7-6 COVERAGE=0
- TYPO3_BRANCH=TYPO3_6-2 COVERAGE=0
matrix:
exclude:
- php: 5.3
env: TYPO3_BRANCH=master COVERAGE=0
- php: 5.4
env: TYPO3_BRANCH=master COVERAGE=0
- php: 5.5
env: TYPO3_BRANCH=master COVERAGE=0
- php: 5.6
env: TYPO3_BRANCH=master COVERAGE=0
- php: 5.3
env: TYPO3_BRANCH=TYPO3_7-6 COVERAGE=0
- php: 5.4
env: TYPO3_BRANCH=TYPO3_7-6 COVERAGE=0
notifications:
email:
sudo: false
before_script:
- 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 theme_bootstrap typo3conf/ext/
script:
- >
echo;
echo "Running unit tests";
/bin/bash -c "
if [ -d typo3conf/ext/theme_bootstramp/Tests/Unit/ ]; then
./bin/phpunit --colors -c typo3/sysext/core/Build/UnitTests.xml typo3conf/ext/theme_bootstramp/Tests/Unit/
fi
"
- >
echo;
echo "Running php lint";
/bin/bash -c "
if ! find typo3conf/ext/theme_bootstrap -name '*.php' -print0 | xargs -0 -L 1 -P 8 php -l > /tmp/errors 2>&1; then
grep -v \"No syntax errors detected in\" /tmp/errors;
exit 99;
fi
"