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