[BUGFIX] Load language file for error messages
[Packages/TYPO3.CMS.git] / .travis.yml
1 language: php
2
3 matrix:
4   allow_failures:
5     - php: 5.6
6   include:
7     - php: 5.3
8     - php: 5.4
9     - php: 5.5
10       env: SUBMODULE_TEST=yes
11     - php: 5.6
12
13 env:
14   global:
15     secure: NGVAI0ayw2h9pB2bi2u9AkfV1OKa2LCrGXNtxAvQhFxKW28qmeOUehFuacxpvCI5fA8Ae7oVo2Ba0vcpb5a3uJry1lMpxcn9Ic+voB7SwlCuL6Rx/vntPkYUH+58cC3t40yHKArCUE9KCJA6znNCaZ7MyG6dWHgry0cvAjVOQzE=
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   - >
36     if [[ "$TRAVIS_PHP_VERSION" = "5.3" || "$TRAVIS_PHP_VERSION" = "5.4" ]]; then
37         pecl install igbinary > /dev/null;
38     fi
39   - echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
40   - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
41   - chmod a+x typo3/sysext/core/Build/Scripts/*
42   - sudo apt-get install parallel
43   - composer self-update
44   - if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi
45   - composer install
46
47 script:
48   - >
49     echo;
50     echo "Running unit tests";
51     ./bin/phpunit --colors -c typo3/sysext/core/Build/UnitTests.xml
52   - >
53     echo;
54     export typo3DatabaseName="typo3";
55     export typo3DatabaseHost="localhost";
56     export typo3DatabaseUsername="root";
57     export typo3DatabasePassword="";
58     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 {}'
59   - >
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   - >
64     echo;
65     echo "Running XLF checker";
66     ./typo3/sysext/core/Build/Scripts/xlfcheck.sh
67   - >
68     if [[ "$SUBMODULE_TEST" == "yes" ]]; then
69         echo;
70         echo "Running git submodule check";
71         /bin/bash -c "
72             if [[ `git submodule status 2>&1 | wc -l` -ne 0 ]]; then
73                 echo \"Found a submodule definition in repository\";
74                 exit 99;
75             fi
76         "
77     fi