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