[TASK] RTE: Migrate the editor toolbar to plain JavaScript
[Packages/TYPO3.CMS.git] / .travis.yml
1 language: php
2
3 matrix:
4 allow_failures:
5 - php: hhvm-nightly
6 include:
7 - php: 5.5
8 env: UNIT_TESTS=yes FUNCTIONAL_TESTS=yes PHP_LINT=yes XLF_CHECK=yes
9 - php: 5.6
10 env: UNIT_TESTS=yes FUNCTIONAL_TESTS=yes PHP_LINT=yes
11 - php: hhvm-nightly
12 env: UNIT_TESTS=yes
13
14 services:
15 - memcached
16 - redis-server
17
18 notifications:
19 irc:
20 channels:
21 - "irc.freenode.net#typo3-cms"
22 on_success: change
23 on_failure: always
24 use_notice: true
25 slack:
26 rooms:
27 secure: a7c9Nw3KblUQsO4np7Sa685y7tqSJ5nSvzO8hnFjKEeQlgkbnC7Qq2TBvVSr92A1UMouL+6E9ngp3cb7rSYWsNKIaHn51CjhrvlfFElTZ0qd/jLVNDf1B765i0txiIZLLed0e3871/151xBgnggsXC4hcv4mPGc9g//ZPabp++E=
28 on_success: change
29 on_failure: always
30
31 before_script:
32 - if [ -e ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ]; then echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
33 - if [ -e ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ]; then echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
34 - sudo apt-get install parallel
35 - rm -rf typo3/sysext/compatibility6
36 - composer self-update
37 - composer install
38
39 script:
40 - >
41 if [[ "$UNIT_TESTS" == "yes" ]]; then
42 echo;
43 echo "Running unit tests";
44 ./bin/phpunit --colors -c typo3/sysext/core/Build/UnitTests.xml
45 fi
46 - >
47 if [[ "$FUNCTIONAL_TESTS" == "yes" ]]; then
48 echo;
49 export typo3DatabaseName="typo3";
50 export typo3DatabaseHost="localhost";
51 export typo3DatabaseUsername="root";
52 export typo3DatabasePassword="";
53 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 {}'
54 fi
55 - >
56 if [[ "$PHP_LINT" == "yes" ]]; then
57 echo;
58 echo "Running php lint";
59 /bin/bash -c "
60 if ! find typo3/ -name \*.php | parallel --gnu 'php -l {}' > /tmp/errors 2>&1; then
61 grep -v \"No syntax errors detected in\" /tmp/errors;
62 exit 99;
63 fi
64 "
65 fi
66 - >
67 if [[ "$XLF_CHECK" == "yes" ]]; then
68 echo;
69 echo "Running XLF checker";
70 ./typo3/sysext/core/Build/Scripts/xlfcheck.sh
71 fi