[TASK] Make HtmlspecialcharsViewHelper compilable
[Packages/TYPO3.CMS.git] / .travis.yml
1 language: php
2
3 matrix:
4   allow_failures:
5     - php: 7
6     - php: hhvm-nightly
7     - php: 5.5
8       env: FUNCTIONAL_TESTS=yes
9     - php: 5.6
10       env: FUNCTIONAL_TESTS=yes
11
12   include:
13     - php: 5.5
14       env: UNIT_TESTS=yes PHP_LINT=yes XLF_CHECK=yes
15     - php: 5.5
16       env: FUNCTIONAL_TESTS=yes
17     - php: 5.6
18       env: UNIT_TESTS=yes PHP_LINT=yes
19     - php: 5.6
20       env: FUNCTIONAL_TESTS=yes
21     - php: 7
22       env: UNIT_TESTS=yes
23     - php: hhvm-nightly
24       env: UNIT_TESTS=yes
25
26 services:
27   - memcached
28   - redis-server
29
30 notifications:
31   irc:
32     channels:
33       - "irc.freenode.net#typo3-cms"
34     on_success: change
35     on_failure: always
36     use_notice: true
37   slack:
38     rooms:
39       secure: nHWVTPyG3CQWIcYA1LASS11dD0/NBcmrAyr3xxQW0XYtH47ZUKRlEtxrVLuL7ptciNwMbfZgsiRQ1QGWDerHUlBkg0iwRxpUZgeylzWaiXsHFVAp2IBfEX54KrWeYm9gewIBDDtnp+sLgpXGgmpIs2bAGkZe5129UsUExoWh0+g=
40     on_success: change
41     on_failure: always
42
43 before_script:
44   - if [ -e ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ]; then echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
45   - if [ -e ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ]; then echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
46   - sudo apt-get install parallel
47   - rm -rf typo3/sysext/compatibility6
48   - composer self-update
49   - composer install
50
51 script:
52   - >
53     if [[ "$UNIT_TESTS" == "yes" ]]; then
54       echo;
55       echo "Running unit tests";
56       ./bin/phpunit --colors -c typo3/sysext/core/Build/UnitTests.xml
57     fi
58   - >
59     if [[ "$FUNCTIONAL_TESTS" == "yes" ]]; then
60         echo;
61         export typo3DatabaseName="typo3";
62         export typo3DatabaseHost="localhost";
63         export typo3DatabaseUsername="root";
64         export typo3DatabasePassword="";
65         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 {}'
66     fi
67   - >
68     if [[ "$PHP_LINT" == "yes" ]]; then
69         echo;
70         echo "Running php lint";
71         find typo3/ -name \*.php -not -path "typo3/contrib/vendor/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
72     fi
73   - >
74     if [[ "$XLF_CHECK" == "yes" ]]; then
75         echo;
76         echo "Running XLF checker";
77         ./typo3/sysext/core/Build/Scripts/xlfcheck.sh
78     fi