[BUGFIX] Use parse_url to determine absolute urls in ImageService
[Packages/TYPO3.CMS.git] / .travis.yml
1 language: php
2
3 matrix:
4 fast_finish: true
5 allow_failures:
6 - php: 7
7
8 include:
9 - php: 5.5
10 env: UNIT_TESTS=yes FUNCTIONAL_TESTS=yes PHP_LINT=yes XLF_CHECK=yes SUBMODULE_TEST=yes
11 - php: 5.6
12 env: UNIT_TESTS=yes FUNCTIONAL_TESTS=yes PHP_LINT=yes
13 - php: 7
14 env: UNIT_TESTS=yes
15
16 sudo: false
17
18 addons:
19 apt:
20 packages:
21 - parallel
22
23 cache:
24 directories:
25 - $HOME/.composer/cache
26
27 env:
28 global:
29 secure: NGVAI0ayw2h9pB2bi2u9AkfV1OKa2LCrGXNtxAvQhFxKW28qmeOUehFuacxpvCI5fA8Ae7oVo2Ba0vcpb5a3uJry1lMpxcn9Ic+voB7SwlCuL6Rx/vntPkYUH+58cC3t40yHKArCUE9KCJA6znNCaZ7MyG6dWHgry0cvAjVOQzE=
30
31 services:
32 - memcached
33 - redis-server
34
35 notifications:
36 irc:
37 channels:
38 - "irc.freenode.net#typo3-cms"
39 on_success: change
40 on_failure: always
41 use_notice: true
42 slack:
43 rooms:
44 secure: nHWVTPyG3CQWIcYA1LASS11dD0/NBcmrAyr3xxQW0XYtH47ZUKRlEtxrVLuL7ptciNwMbfZgsiRQ1QGWDerHUlBkg0iwRxpUZgeylzWaiXsHFVAp2IBfEX54KrWeYm9gewIBDDtnp+sLgpXGgmpIs2bAGkZe5129UsUExoWh0+g=
45 on_success: change
46 on_failure: always
47
48 before_script:
49 - if [ -e ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ]; then echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
50 - if [ -e ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ]; then echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
51 - rm -rf typo3/sysext/compatibility6
52 - if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi
53 - composer install
54
55 script:
56 - >
57 if [[ "$UNIT_TESTS" == "yes" ]]; then
58 echo;
59 echo "Running unit tests";
60 ./bin/phpunit --colors -c typo3/sysext/core/Build/UnitTests.xml
61 fi
62 - >
63 if [[ "$FUNCTIONAL_TESTS" == "yes" ]]; then
64 echo;
65 export typo3DatabaseName="typo3";
66 export typo3DatabaseHost="localhost";
67 export typo3DatabaseUsername="root";
68 export typo3DatabasePassword="";
69 find . -wholename '*typo3/sysext/*/Tests/Functional/*Test.php' | parallel --gnu 'echo; echo "Running functional test suite {}"; ./bin/phpunit --colors -c typo3/sysext/core/Build/FunctionalTests.xml {}'
70 fi
71 - >
72 if [[ "$PHP_LINT" == "yes" ]]; then
73 echo;
74 echo "Running php lint";
75 find typo3/ -name \*.php -not -path "typo3/vendor/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
76 fi
77 - >
78 if [[ "$XLF_CHECK" == "yes" ]]; then
79 echo;
80 echo "Running XLF checker";
81 ./typo3/sysext/core/Build/Scripts/xlfcheck.sh
82 fi
83 - >
84 if [[ "$SUBMODULE_TEST" == "yes" ]]; then
85 echo;
86 echo "Running git submodule check";
87 /bin/bash -c "
88 if [[ `git submodule status 2>&1 | wc -l` -ne 0 ]]; then
89 echo \"Found a submodule definition in repository\";
90 exit 99;
91 fi
92 "
93 fi