[BUGFIX] Make Extbase respect sys_language_mode=strict
[Packages/TYPO3.CMS.git] / .travis.yml
1 language: php
2
3 php:
4   - 5.3
5   - 5.4
6   - 5.5
7   - 5.6
8
9 env:
10   - DB=mysql
11
12 services:
13   - memcached
14   - redis-server
15
16 notifications:
17   irc:
18     - "irc.freenode.net#typo3-cms"
19   email:
20     - typo3-team-core@lists.typo3.org
21
22 before_script:
23   - >
24     if [[ "$TRAVIS_PHP_VERSION" = "5.3" || "$TRAVIS_PHP_VERSION" = "5.4" ]]; then
25         echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
26         echo "apc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
27         echo "apc.slam_defense=0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
28     fi
29   - >
30     if [[ "$TRAVIS_PHP_VERSION" = "5.3" || "$TRAVIS_PHP_VERSION" = "5.4" ]]; then
31         pecl install igbinary > /dev/null;
32     fi
33   - echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
34   - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
35   - sudo apt-get install parallel
36   - composer self-update
37   - composer --dev install
38   - mkdir -p uploads typo3temp typo3conf/ext
39
40 script:
41   - >
42     echo;
43     echo "Running unit tests";
44     ./bin/phpunit --colors -c typo3/sysext/core/Build/UnitTests.xml
45   - >
46     echo;
47     export typo3DatabaseName="typo3";
48     export typo3DatabaseHost="localhost";
49     export typo3DatabaseUsername="root";
50     export typo3DatabasePassword="";
51     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 {}'
52   - >
53     echo;
54     echo "Running php lint";
55     /bin/bash -c "
56         if ! find typo3/ -name \*.php | parallel --gnu 'php -l {}' > /tmp/errors 2>&1; then
57             grep -v \"No syntax errors detected in\" /tmp/errors;
58             exit 99;
59         fi
60     "