[TASK] Replace sprite icon "actions-edit-merge-localization" with the new IconFactory
[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 FUNCTIONAL_TESTS=yes PHP_LINT=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   webhooks:
48     urls:
49       - http://www.t3bot.de/hooks/travis/index.php
50     on_success: always
51     on_failure: always
52     on_start: never
53
54 before_script:
55   - >
56     if [[ "$TRAVIS_PHP_VERSION" < "7" && -e ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ]]; then
57         echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
58         echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
59     fi
60   - rm -rf typo3/sysext/compatibility6
61   - if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi
62   - composer install
63
64 script:
65   - >
66     if [[ "$UNIT_TESTS" == "yes" ]]; then
67       echo;
68       echo "Running unit tests";
69       ./bin/phpunit --colors -c typo3/sysext/core/Build/UnitTests.xml
70     fi
71   - >
72     if [[ "$FUNCTIONAL_TESTS" == "yes" ]]; then
73         echo;
74         export typo3DatabaseName="typo3";
75         export typo3DatabaseHost="localhost";
76         export typo3DatabaseUsername="root";
77         export typo3DatabasePassword="";
78         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 {}'
79     fi
80   - >
81     if [[ "$PHP_LINT" == "yes" ]]; then
82         echo;
83         echo "Running php lint";
84         find typo3/ -name \*.php -not -path "vendor/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
85     fi
86   - >
87     if [[ "$XLF_CHECK" == "yes" ]]; then
88         echo;
89         echo "Running XLF checker";
90         ./typo3/sysext/core/Build/Scripts/xlfcheck.sh
91     fi
92   - >
93       if [[ "$SUBMODULE_TEST" == "yes" ]]; then
94           echo;
95           echo "Running git submodule check";
96           /bin/bash -c "
97               if [[ `git submodule status 2>&1 | wc -l` -ne 0 ]]; then
98                   echo \"Found a submodule definition in repository\";
99                   exit 99;
100               fi
101           "
102       fi