f252064cfa6d634f82861e05a7ee0e1b18ac98e0
[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 channels:
19 - "irc.freenode.net#typo3-cms"
20 on_success: change
21 on_failure: always
22 use_notice: true
23 slack:
24 rooms:
25 secure: a7c9Nw3KblUQsO4np7Sa685y7tqSJ5nSvzO8hnFjKEeQlgkbnC7Qq2TBvVSr92A1UMouL+6E9ngp3cb7rSYWsNKIaHn51CjhrvlfFElTZ0qd/jLVNDf1B765i0txiIZLLed0e3871/151xBgnggsXC4hcv4mPGc9g//ZPabp++E=
26 on_success: change
27 on_failure: always
28
29 before_script:
30 - >
31 if [[ "$TRAVIS_PHP_VERSION" = "5.4" ]]; then
32 echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
33 echo "apc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
34 echo "apc.slam_defense=0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
35 fi
36 - >
37 if [[ "$TRAVIS_PHP_VERSION" = "5.3" || "$TRAVIS_PHP_VERSION" = "5.4" ]]; then
38 pecl install igbinary > /dev/null;
39 fi
40 - echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
41 - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
42 - sudo apt-get install parallel
43 - composer self-update
44 - composer --dev install
45
46 script:
47 - >
48 echo;
49 echo "Running unit tests";
50 ./bin/phpunit --colors -c typo3/sysext/core/Build/UnitTests.xml
51 - >
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 - >
59 echo;
60 echo "Running php lint";
61 /bin/bash -c "
62 if ! find typo3/ -name \*.php | parallel --gnu 'php -l {}' > /tmp/errors 2>&1; then
63 grep -v \"No syntax errors detected in\" /tmp/errors;
64 exit 99;
65 fi
66 "