[FEATURE] Intgrate CSS class "lead" for introductions
[Packages/TYPO3.CMS.git] / .travis.yml
1 language: php
2 php:
3   - 5.3
4   - 5.4
5   - 5.5
6
7 env:
8   - DB=mysql PHPUNIT=1
9   - DB=none PHPLINT=1
10
11 services:
12   - memcached
13
14 before_script:
15 # Install build dependencies
16   - git clone --single-branch --branch master --depth 1 git://github.com/typo3-ci/TYPO3-Travis-Integration.git build-environment
17   - source build-environment/install-helper.sh
18   - if [[ "$TRAVIS_PHP_VERSION" != "5.5" ]]; then installPhpModule igbinary; fi
19   - installPhpModule -y memcache
20   - installPhpModule redis
21   - if [[ "$TRAVIS_PHP_VERSION" == "5.3" ]]; then installPhpModule -y apc; fi
22
23 # Install rudimentary TYPO3
24   - if [[ "$PHPUNIT" == "1" ]]; then mv build-environment/typo3conf .; fi
25   - if [[ "$PHPUNIT" == "1" ]]; then git clone --single-branch --branch master --depth 1 git://git.typo3.org/TYPO3v4/Extensions/phpunit.git typo3conf/ext/phpunit/; fi
26   - if [[ "$PHPUNIT" == "1" ]]; then mkdir fileadmin; fi
27   - if [[ "$PHPUNIT" == "1" ]]; then mkdir uploads; fi
28   - if [[ "$PHPUNIT" == "1" ]]; then mkdir typo3temp; fi
29   - if [[ "$DB" == "mysql" ]]; then mysql -e "DROP DATABASE IF EXISTS typo3_test;" -uroot; fi
30   - if [[ "$DB" == "mysql" ]]; then mysql -e "CREATE DATABASE IF NOT EXISTS typo3_test;" -uroot; fi
31   - if [[ "$DB" == "mysql" ]]; then php build-environment/dbimport/DatabaseImport.php; fi
32   - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/dbimport/cli_users.sql; fi
33
34 script:
35   - if [[ "$PHPLINT" == "1" ]]; then phpLint all; fi
36   - if [[ "$PHPUNIT" == "1" ]]; then php $PWD/typo3/cli_dispatch.phpsh phpunit -c typo3/sysext/core/Build/UnitTests.xml; fi