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