forked from romm/formz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (56 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
62
63
64
65
66
67
language: php
php:
- 5.5
- 5.6
- 7.0
env:
- TYPO3_VERSION=^6.2 COVERAGE=0
- TYPO3_VERSION=^7.6 COVERAGE=0
matrix:
include:
- env: TYPO3_VERSION=^7.6 COVERAGE=1
php: 7.0
# TYPO3 v8 requires PHP v7+
- env: TYPO3_VERSION=^8.7 COVERAGE=0
php: 7.0
exclude:
# We must exclude TYPO3 6.2 with PHP 7, because the build just doesn't work (have no clue why).
- env: TYPO3_VERSION=^6.2 COVERAGE=0
php: 7.0
# Excluding this matrix, because the same one with coverage enabled is included above.
- env: TYPO3_VERSION=^7.6 COVERAGE=0
php: 7.0
sudo: false
addons:
apt:
packages:
- parallel
cache:
directories:
- $HOME/.composer/cache
before_install:
- composer self-update
- composer --version
before_script:
- composer require typo3/cms=$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