[TASK] Deprecate the $icon setter/getter in the Extbase Category model
[Packages/TYPO3.CMS.git] / .travis.yml
1 language: php
2
3 matrix:
4   fast_finish: true
5
6   include:
7     - php: 7
8       env: UNIT_TESTS=yes FUNCTIONAL_TESTS=yes ACCEPTANCE_TESTS=yes PHP_LINT=yes XLF_CHECK=yes SUBMODULE_TEST=yes  EXCEPTIONCODE_TEST=yes
9
10 sudo: false
11
12 addons:
13   apt:
14     packages:
15       - parallel
16       - ack-grep
17       - nginx
18       - realpath
19
20 cache:
21   directories:
22     - $HOME/.composer/cache
23
24 env:
25   global:
26     secure: NGVAI0ayw2h9pB2bi2u9AkfV1OKa2LCrGXNtxAvQhFxKW28qmeOUehFuacxpvCI5fA8Ae7oVo2Ba0vcpb5a3uJry1lMpxcn9Ic+voB7SwlCuL6Rx/vntPkYUH+58cC3t40yHKArCUE9KCJA6znNCaZ7MyG6dWHgry0cvAjVOQzE=
27
28 services:
29   - memcached
30   - redis-server
31
32 notifications:
33   irc:
34     channels:
35       - "irc.freenode.net#typo3-cms"
36     on_success: change
37     on_failure: always
38     use_notice: true
39   slack:
40     rooms:
41       secure: nHWVTPyG3CQWIcYA1LASS11dD0/NBcmrAyr3xxQW0XYtH47ZUKRlEtxrVLuL7ptciNwMbfZgsiRQ1QGWDerHUlBkg0iwRxpUZgeylzWaiXsHFVAp2IBfEX54KrWeYm9gewIBDDtnp+sLgpXGgmpIs2bAGkZe5129UsUExoWh0+g=
42     on_success: change
43     on_failure: always
44   webhooks:
45     urls:
46       - http://www.t3bot.de/hooks/travis/index.php
47     on_success: always
48     on_failure: always
49     on_start: never
50
51 before_script:
52   - phpenv config-rm xdebug.ini
53   - if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi
54   - composer install
55   - typo3/sysext/core/Build/Configuration/TravisNginxFpm/ConfigureStartNginxFpm.sh
56   - mkdir -p typo3temp/var/tests
57   - export typo3DatabaseName="typo3"
58   - export typo3DatabaseHost="localhost"
59   - export typo3DatabaseUsername="root"
60   - export typo3DatabasePassword=""
61
62 script:
63   - >
64     if [[ "$UNIT_TESTS" == "yes" ]]; then
65       ./bin/phpunit -c typo3/sysext/core/Build/UnitTests.xml
66     fi
67
68   - >
69     if [[ "$FUNCTIONAL_TESTS" == "yes" ]]; then
70         find . -wholename '*typo3/sysext/*/Tests/Functional/*Test.php' | parallel --jobs 6 --gnu 'echo; echo "Running functional test suite {}"; ./bin/phpunit -c typo3/sysext/core/Build/FunctionalTests.xml {}'
71     fi
72
73   - >
74     if [[ "$ACCEPTANCE_TESTS" == "yes" ]]; then
75         ./bin/codecept run Acceptance -c typo3/sysext/core/Build/AcceptanceTests.yml --debug
76     fi
77
78   - >
79     if [[ "$PHP_LINT" == "yes" ]]; then
80         find typo3/ -name \*.php -not -path "vendor/*" | parallel --jobs 6 --gnu php -d display_errors=stderr -l {} > /dev/null \;
81     fi
82
83   - >
84     if [[ "$XLF_CHECK" == "yes" ]]; then
85         ./typo3/sysext/core/Build/Scripts/xlfcheck.sh
86     fi
87
88   - >
89       if [[ "$SUBMODULE_TEST" == "yes" ]]; then
90           /bin/bash -c "
91               if [[ `git submodule status 2>&1 | wc -l` -ne 0 ]]; then
92                   echo \"Found a submodule definition in repository\";
93                   exit 99;
94               fi
95           "
96       fi
97
98   - >
99     if [[ "$EXCEPTIONCODE_TEST" == "yes" ]]; then
100         ./typo3/sysext/core/Build/Scripts/duplicateExceptionCodeCheck.sh
101     fi