[TASK] Remove duplicated method in Rtehtmlarea\SelectImage
[Packages/TYPO3.CMS.git] / .travis.yml
1 language: php
2
3 php:
4   - 5.3
5   - 5.4
6   - 5.5
7
8 env:
9   - DB=mysql UNITTESTS=1
10   - DB=none FUNCTIONALTESTS=1
11   - DB=none PHPLINT=1
12
13 notifications:
14   irc:
15     - "irc.freenode.net#typo3-cms"
16   email:
17     - typo3-team-core@lists.typo3.org
18
19 services:
20   - memcached
21
22 before_script:
23   - sudo apt-get update && sudo apt-get install git
24   - git clone --single-branch --branch master --depth 1 git://github.com/typo3-ci/TYPO3-Travis-Integration.git build-environment
25   - source build-environment/install-helper.sh
26
27   - >
28     if [[ "$UNITTESTS" == "1" ]]; then
29         if [[ "$TRAVIS_PHP_VERSION" == "5.3" ]]; then
30                 installPhpModule -y apc;
31         fi
32         if [[ "$TRAVIS_PHP_VERSION" != "5.5" ]]; then
33                 installPhpModule igbinary
34         fi
35         installPhpModule -y memcache
36         installPhpModule redis
37         mv build-environment/typo3conf .
38         git clone --single-branch --branch master --depth 1 git://git.typo3.org/TYPO3CMS/Extensions/phpunit.git typo3conf/ext/phpunit/
39         mkdir fileadmin
40         mkdir uploads
41         mkdir typo3temp
42     fi
43
44   - >
45     if [[ "$FUNCTIONALTESTS" == "1" ]]; then
46         mv build-environment/typo3conf .
47         git clone --single-branch --branch master --depth 1 git://git.typo3.org/TYPO3CMS/Extensions/phpunit.git typo3conf/ext/phpunit/
48         mkdir typo3temp
49     fi
50
51   - >
52     if [[ "$DB" == "mysql" ]]; then
53         mysql -e "DROP DATABASE IF EXISTS typo3_test;" -uroot
54         mysql -e "CREATE DATABASE IF NOT EXISTS typo3_test;" -uroot
55         php build-environment/dbimport/DatabaseImport.php
56         mysql -uroot typo3_test < build-environment/dbimport/cli_users.sql
57     fi
58
59 script:
60   - >
61     if [[ "$PHPLINT" == "1" ]]; then
62         phpLint all
63     elif [[ "$UNITTESTS" == "1" ]]; then
64         ./typo3conf/ext/phpunit/Composer/vendor/bin/phpunit -c typo3/sysext/core/Build/UnitTests.xml
65     elif [[ "$FUNCTIONALTESTS" == "1" ]]; then
66         ./typo3conf/ext/phpunit/Composer/vendor/bin/phpunit -c typo3/sysext/core/Build/FunctionalTests.xml
67     else
68         exit 1
69     fi