-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (43 loc) · 1.05 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
language: php
matrix:
include:
- env: TYPO3_VERSION=^8.1 COVERAGE=1
php: 7.0
- env: TYPO3_VERSION=^8.1 COVERAGE=1
php: 7.1
- env: TYPO3_VERSION=^8.1 COVERAGE=1
php: 7.2
sudo: false
addons:
apt:
packages:
- parallel
cache:
directories:
- $HOME/.composer/cache
before_install:
- composer self-update
- composer --version
before_script:
- composer require typo3/minimal=$TYPO3_VERSION
- git checkout composer.json
- export TYPO3_PATH_WEB=$PWD/.Build/Web
- mkdir -p build/logs
script:
- >
if [[ "$COVERAGE" == "0" ]]; then
echo;
echo "Running unit tests";
.Build/bin/phpunit --configuration phpunit.xml.dist --colors Tests/Unit/
fi
- >
if [[ "$COVERAGE" == "1" ]]; then
echo;
echo "Running unit tests with coverage";
.Build/bin/phpunit --configuration phpunit.xml.dist --colors --coverage-text --coverage-clover build/logs/clover.xml Tests/Unit/
fi
after_script:
- >
if [[ "$COVERAGE" == "1" ]]; then
travis_retry php .Build/bin/coveralls -v
fi