[!!!][TASK] Drop ExtJS support in Frontend TypoScript
[Packages/TYPO3.CMS.git] / .travis.yml
1 language: php
2
3 node_js:
4     - "0.10"
5
6 matrix:
7   fast_finish: true
8
9   include:
10     - php: 7
11       env: UNIT_TESTS=yes FUNCTIONAL_TESTS=yes ACCEPTANCE_TESTS=no JSUNIT_TESTS=yes PHP_LINT=yes XLF_CHECK=yes SUBMODULE_TEST=yes  EXCEPTIONCODE_TEST=yes
12
13 sudo: false
14
15 addons:
16   apt:
17     packages:
18       - parallel
19       - ack-grep
20       - nginx
21       - realpath
22
23 cache:
24   directories:
25     - $HOME/.composer/cache
26
27 services:
28   - memcached
29   - redis-server
30
31 notifications:
32   irc:
33     channels:
34       - "irc.freenode.net#typo3-cms"
35     on_success: change
36     on_failure: always
37     use_notice: true
38   slack:
39     rooms:
40       secure: nHWVTPyG3CQWIcYA1LASS11dD0/NBcmrAyr3xxQW0XYtH47ZUKRlEtxrVLuL7ptciNwMbfZgsiRQ1QGWDerHUlBkg0iwRxpUZgeylzWaiXsHFVAp2IBfEX54KrWeYm9gewIBDDtnp+sLgpXGgmpIs2bAGkZe5129UsUExoWh0+g=
41     on_success: change
42     on_failure: always
43   webhooks:
44     urls:
45       - http://www.t3bot.de/hooks/travis/index.php
46     on_success: always
47     on_failure: always
48     on_start: never
49
50 before_script:
51   - phpenv config-rm xdebug.ini
52   - echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
53   - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
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 before_install:
63     - export DISPLAY=:99.0
64     - sh -e /etc/init.d/xvfb start
65
66 script:
67   - >
68     if [[ "$UNIT_TESTS" == "yes" ]]; then
69       ./bin/phpunit -c typo3/sysext/core/Build/UnitTests.xml
70     fi
71
72   - >
73     if [[ "$FUNCTIONAL_TESTS" == "yes" ]]; then
74       ./typo3/sysext/core/Build/Scripts/splitFunctionalTests.sh 6
75       parallel -a <(seq 0 5) --gnu './bin/phpunit -c typo3/sysext/core/Build/FunctionalTests-Job-{}.xml'
76     fi
77
78   - >
79     if [[ "$ACCEPTANCE_TESTS" == "yes" ]]; then
80       ./bin/codecept run Acceptance -c typo3/sysext/core/Build/AcceptanceTests.yml --debug
81     fi
82
83   - >
84     if [[ "$JSUNIT_TESTS" == "yes" ]]; then
85       cd Build && npm install && cd ..
86       ./Build/node_modules/karma/bin/karma start typo3/sysext/core/Build/Configuration/JSUnit/karma.conf.js --single-run
87     fi
88
89   - >
90     if [[ "$PHP_LINT" == "yes" ]]; then
91       find typo3/ -name \*.php -not -path "vendor/*" | parallel --jobs 6 --gnu php -d display_errors=stderr -l {} > /dev/null \;
92     fi
93
94   - >
95     if [[ "$XLF_CHECK" == "yes" ]]; then
96       ./typo3/sysext/core/Build/Scripts/xlfcheck.sh
97     fi
98
99   - >
100     if [[ "$SUBMODULE_TEST" == "yes" ]]; then
101       /bin/bash -c "
102         if [[ `git submodule status 2>&1 | wc -l` -ne 0 ]]; then
103           echo \"Found a submodule definition in repository\";
104           exit 99;
105         fi
106       "
107     fi
108
109   - >
110     if [[ "$EXCEPTIONCODE_TEST" == "yes" ]]; then
111       ./typo3/sysext/core/Build/Scripts/duplicateExceptionCodeCheck.sh
112     fi