[BUGFIX] Available extension list not updated on CLI
[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 services:
14 - memcached
15
16 before_script:
17 - git clone --single-branch --branch master --depth 1 git://github.com/typo3-ci/TYPO3-Travis-Integration.git build-environment
18 - source build-environment/install-helper.sh
19
20 - >
21 if [[ "$UNITTESTS" == "1" ]]; then
22 if [[ "$TRAVIS_PHP_VERSION" == "5.3" ]]; then
23 installPhpModule -y apc;
24 fi
25 if [[ "$TRAVIS_PHP_VERSION" != "5.5" ]]; then
26 installPhpModule igbinary
27 fi
28 installPhpModule -y memcache
29 installPhpModule redis
30 mv build-environment/typo3conf .
31 git clone --single-branch --branch master --depth 1 git://git.typo3.org/TYPO3v4/Extensions/phpunit.git typo3conf/ext/phpunit/
32 mkdir fileadmin
33 mkdir uploads
34 mkdir typo3temp
35 fi
36
37 - >
38 if [[ "$FUNCTIONALTESTS" == "1" ]]; then
39 mv build-environment/typo3conf .
40 git clone --single-branch --branch master --depth 1 git://git.typo3.org/TYPO3v4/Extensions/phpunit.git typo3conf/ext/phpunit/
41 mkdir typo3temp
42 fi
43
44 - >
45 if [[ "$DB" == "mysql" ]]; then
46 mysql -e "DROP DATABASE IF EXISTS typo3_test;" -uroot
47 mysql -e "CREATE DATABASE IF NOT EXISTS typo3_test;" -uroot
48 php build-environment/dbimport/DatabaseImport.php
49 mysql -uroot typo3_test < build-environment/dbimport/cli_users.sql
50 fi
51
52 script:
53 - >
54 if [[ "$PHPLINT" == "1" ]]; then
55 phpLint all
56 elif [[ "$UNITTESTS" == "1" ]]; then
57 ./typo3conf/ext/phpunit/Composer/vendor/bin/phpunit -c typo3/sysext/core/Build/UnitTests.xml
58 elif [[ "$FUNCTIONALTESTS" == "1" ]]; then
59 ./typo3conf/ext/phpunit/Composer/vendor/bin/phpunit -c typo3/sysext/core/Build/FunctionalTests.xml
60 else
61 exit 1
62 fi