forked from subugoe/typo3-find
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·63 lines (56 loc) · 1.52 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
language: php
matrix:
fast_finish: true
include:
- php: 5.5
env: TYPO3_VERSION=^7.6
- php: 5.6
env: TYPO3_VERSION=^7.6
- php: 7.0
env: TYPO3_VERSION=^7.6
- php: 7.1
env: TYPO3_VERSION=^7.6
- php: 7.1
env: TYPO3_VERSION=^8
- php: 7.0
env: TYPO3_VERSION=^8
- php: 7.1
env: TYPO3_VERSION=dev-master
- php: 7.0
env: TYPO3_VERSION=dev-master
- php: nightly
env: TYPO3_VERSION=dev-master
allow_failures:
- env: TYPO3_VERSION=dev-master
- php: nightly
addons:
apt:
packages:
- parallel
sudo: false
cache:
directories:
- "$HOME/.composer/cache"
before_install:
- composer self-update
- composer --version
install:
- composer require --no-update "typo3/cms:$TYPO3_VERSION"
- composer require --no-update "solarium/solarium"
- if [[ "$TYPO3_VERSION" == "^8" ]]; then composer require --no-update "phpunit/phpunit:^5.0"; fi
- composer install --prefer-dist
- export TYPO3_PATH_WEB=$PWD/.Build/Web
script:
- >
echo;
echo "Running php lint";
find . -name \*.php ! -path "./.Build/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
- >
echo;
echo "Running unit tests";
if [[ "$TYPO3_VERSION" == "dev-master" ]];
then
.Build/bin/phpunit --colors -c .Build/vendor/typo3/cms/components/testing_framework/core/Build/UnitTests.xml Tests/Unit/
else
.Build/bin/phpunit --colors -c .Build/vendor/typo3/cms/typo3/sysext/core/Build/UnitTests.xml Tests/Unit/
fi