-
Notifications
You must be signed in to change notification settings - Fork 28
/
.travis.yml
40 lines (34 loc) · 1.19 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
language: php
php:
- 7.2
env:
- TYPO3_BRANCH=v9.5.5
# - TYPO3_BRANCH=master
matrix:
include:
- php: 7.2
# env: TYPO3_BRANCH=v9.5.5
allow_failures:
- env: TYPO3_BRANCH=v9.5.5
# - 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 vidi typo3conf/ext/
- export typo3DatabaseName="typo3";
- export typo3DatabaseHost="localhost";
- export typo3DatabaseUsername="root";
- export typo3DatabasePassword="";
script:
- ./bin/phpunit --coverage-clover=unit-tests-coverage.clover -c typo3conf/ext/vidi/Tests/Build/UnitTests.xml
# - ./bin/phpunit --coverage-clover=functional-tests-coverage.clover -c typo3conf/ext/vidi/Tests/Build/FunctionalTests.xml
after_script:
- echo "Uploading code coverage results";
- cp -R typo3conf/ext/vidi/.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