forked from bithost-gmbh/pdfviewhelpers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (40 loc) · 1.72 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
sudo: false
language: php
matrix:
fast_finish: true
include:
- php: 7.0
env: TYPO3_VERSION=^8
- php: 7.1
env: TYPO3_VERSION=^8
- php: 7.2
env: TYPO3_VERSION=^9
- php: 7.3
env: TYPO3_VERSION=^9 COVERAGE="YES"
- php: 7.4
env: TYPO3_VERSION=^10
services:
- mysql
before_install:
- composer self-update
- composer --version
before_script:
- composer require typo3/minimal=$TYPO3_VERSION
- export TYPO3_PATH_WEB=$PWD/.Build/Web
- pear install pear/PHP_CodeSniffer
- wget https://phar.phpunit.de/phpcov.phar
- phpenv rehash
script:
- phpcs -n --standard=PSR2 Classes/
- mkdir -p build/cov
- >
if [[ "$COVERAGE" == "YES" ]]; then .Build/bin/phpunit --whitelist Classes/ --coverage-php=./build/cov/unit.cov --colors -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit/; else .Build/bin/phpunit --colors -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit/; fi
- >
export typo3DatabaseName="typo3";
export typo3DatabaseHost="localhost";
export typo3DatabaseUsername="root";
export typo3DatabasePassword="";
if [[ "$COVERAGE" == "YES" ]]; then .Build/bin/phpunit --whitelist Classes/ --coverage-php=./build/cov/functional.cov --colors -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml Tests/Functional; else .Build/bin/phpunit --colors -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml Tests/Functional; fi
after_script:
- if [[ "$COVERAGE" == "YES" ]]; then php phpcov.phar merge build/cov --clover build/logs/clover.xml; fi
- if [[ "$COVERAGE" == "YES" ]]; then .Build/bin/php-coveralls -v --coverage_clover=build/logs/clover.xml; fi