[TASK] Move wizards to Web=>Functions
[Packages/TYPO3.CMS.git] / .travis.yml
1 language: php
2
3 php:
4   - 5.5
5   - 5.6
6   - hhvm-nightly
7
8 matrix:
9   allow_failures:
10     - php: hhvm-nightly
11
12 env:
13   - DB=mysql
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: a7c9Nw3KblUQsO4np7Sa685y7tqSJ5nSvzO8hnFjKEeQlgkbnC7Qq2TBvVSr92A1UMouL+6E9ngp3cb7rSYWsNKIaHn51CjhrvlfFElTZ0qd/jLVNDf1B765i0txiIZLLed0e3871/151xBgnggsXC4hcv4mPGc9g//ZPabp++E=
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   - chmod a+x typo3/sysext/core/Build/Scripts/*
36   - sudo apt-get install parallel
37   - composer self-update
38   - composer install
39
40 script:
41   - >
42     echo;
43     echo "Running unit tests";
44     ./bin/phpunit --colors -c typo3/sysext/core/Build/UnitTests.xml
45   - >
46     if [[ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]]; then
47         echo;
48         export typo3DatabaseName="typo3";
49         export typo3DatabaseHost="localhost";
50         export typo3DatabaseUsername="root";
51         export typo3DatabasePassword="";
52         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 {}'
53     fi
54   - >
55     if [[ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]]; then
56         echo;
57         echo "Running php lint";
58         /bin/bash -c "
59             if ! find typo3/ -name \*.php | parallel --gnu 'php -l {}' > /tmp/errors 2>&1; then
60                 grep -v \"No syntax errors detected in\" /tmp/errors;
61                 exit 99;
62             fi
63         "
64     fi
65   - >
66     if [[ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]]; then
67         echo;
68         echo "Running XLF checker";
69         ./typo3/sysext/core/Build/Scripts/xlfcheck.sh
70     fi