[TASK] Adjust Travis to new requirements for version 7
[Packages/TYPO3.CMS.git] / .travis.yml
1 language: php
2
3 php:
4 - 5.5
5 - 5.6
6
7 env:
8 - DB=mysql
9
10 services:
11 - memcached
12 - redis-server
13
14 notifications:
15 irc:
16 channels:
17 - "irc.freenode.net#typo3-cms"
18 on_success: change
19 on_failure: always
20 use_notice: true
21 slack:
22 rooms:
23 secure: a7c9Nw3KblUQsO4np7Sa685y7tqSJ5nSvzO8hnFjKEeQlgkbnC7Qq2TBvVSr92A1UMouL+6E9ngp3cb7rSYWsNKIaHn51CjhrvlfFElTZ0qd/jLVNDf1B765i0txiIZLLed0e3871/151xBgnggsXC4hcv4mPGc9g//ZPabp++E=
24 on_success: change
25 on_failure: always
26
27 before_script:
28 - echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
29 - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
30 - sudo apt-get install parallel
31 - composer self-update
32 - composer --dev install
33
34 script:
35 - >
36 echo;
37 echo "Running unit tests";
38 ./bin/phpunit --colors -c typo3/sysext/core/Build/UnitTests.xml
39 - >
40 echo;
41 export typo3DatabaseName="typo3";
42 export typo3DatabaseHost="localhost";
43 export typo3DatabaseUsername="root";
44 export typo3DatabasePassword="";
45 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 {}'
46 - >
47 echo;
48 echo "Running php lint";
49 /bin/bash -c "
50 if ! find typo3/ -name \*.php | parallel --gnu 'php -l {}' > /tmp/errors 2>&1; then
51 grep -v \"No syntax errors detected in\" /tmp/errors;
52 exit 99;
53 fi
54 "