-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (39 loc) · 1.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
language: php
php:
- 5.5
- 5.6
env:
- TYPO3_BRANCH=TYPO3_6-2
# - TYPO3_BRANCH=TYPO3_7-1-0
# - TYPO3_BRANCH=master
matrix:
include:
- php: 5.5
env: TYPO3_BRANCH=TYPO3_6-2
- php: 5.6
env: TYPO3_BRANCH=TYPO3_6-2
# allow_failures:
# - env: TYPO3_BRANCH=TYPO3_7-1-0
# - env: TYPO3_BRANCH=master
fast_finish: true
before_script:
- cd ..
- git clone --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 media typo3conf/ext/
- git clone --branch master --depth 1 https://github.com/fabarea/vidi.git typo3conf/ext/vidi
- export typo3DatabaseName="typo3";
- export typo3DatabaseHost="localhost";
- export typo3DatabaseUsername="root";
- export typo3DatabasePassword="";
script:
- ./bin/phpunit --coverage-clover=unit-tests-coverage.clover -c typo3conf/ext/media/Tests/Build/UnitTests.xml
# - ./bin/phpunit --coverage-clover=functional-tests-coverage.clover -c typo3conf/ext/media/Tests/Build/FunctionalTests.xml
after_script:
- echo "Uploading code coverage results";
- cp -R typo3conf/ext/media/.git .
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover unit-tests-coverage.clover
- php ocular.phar code-coverage:upload --format=php-clover functional-tests-coverage.clover