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