forked from TYPO3-Caretaker/caretaker_instance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (52 loc) · 1.38 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
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
branches:
only:
- master
- /^[0-9]+\.[0-9]+\.[0-9]+$/
env:
- TYPO3_VERSION="^6.2.0"
- TYPO3_VERSION="^7.6.0"
matrix:
exclude:
- php: 5.3
env: TYPO3_VERSION="^7.6.0"
- php: 5.4
env: TYPO3_VERSION="^7.6.0"
- php: 7.0
env: TYPO3_VERSION="^6.2.0"
- php: 7.1
env: TYPO3_VERSION="^6.2.0"
sudo: false
addons:
apt:
packages:
- parallel
cache:
directories:
- $HOME/.composer/cache
before_install:
- if php -i | grep -q xdebug; then phpenv config-rm xdebug.ini; fi
- if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi
before_script:
- if [ "$TYPO3_VERSION" == "^6.2.0" ]; then composer require typo3/cms-composer-installers="1.2.5 as 1.1.4" --no-update; fi
- composer require typo3/cms="$TYPO3_VERSION"
- git checkout composer.json
- export TYPO3_PATH_WEB=$PWD/.Build/Web
script:
- >
echo;
echo "Running unit tests";
.Build/bin/phpunit -c .Build/vendor/typo3/cms/typo3/sysext/core/Build/UnitTests.xml Tests/Unit/
- >
echo;
echo "Running php lint";
find . -name \*.php ! -path "./.Build/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
- >
curl -sSL https://raw.githubusercontent.com/etobi/extension-build/master/scripts/travis/uploadToTER.bash | bash;