dbbfbecbeed46a27059c71a3c77632ec2af225f2
[Packages/TYPO3.CMS.git] / .travis.yml
1 language: php
2 php:
3   - 5.3
4   - 5.4
5
6 env:
7   - DB=mysql
8
9 branches:
10   only:
11     - TYPO3_6-0
12     - TYPO3_6-1
13     - master
14
15 services:
16   - memcached
17
18 before_script:
19 # Install build dependencies
20   - git clone git://github.com/typo3-ci/TYPO3-Travis-Integration.git build-environment
21   - source build-environment/install-helper.sh
22   - installPhpModule igbinary
23   - installPhpModule -y memcache
24   - installPhpModule redis
25   - if [[ "$TRAVIS_PHP_VERSION" == "5.3" ]]; then installPhpModule -y apc; fi
26
27 # Install rudimentary TYPO3
28   - git clone git://git.typo3.org/TYPO3v4/Distributions/Introduction.git build-environment/Introduction
29   - mv build-environment/typo3conf .
30   - git clone git://git.typo3.org/TYPO3v4/Extensions/phpunit.git typo3conf/ext/phpunit/
31   - mkdir fileadmin
32   - mkdir uploads
33   - if [[ "$DB" == "mysql" ]]; then mysql -e "DROP DATABASE IF EXISTS typo3_test;" -uroot; fi
34   - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS typo3_test;" -uroot; fi
35   - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/Introduction/typo3conf/ext/introduction/Resources/Private/Subpackages/Introduction/Database/introduction.sql; fi
36   - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/dbimport/cache_tables.sql; fi
37   - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/dbimport/cli_users.sql; fi
38   - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/dbimport/phpunit.sql; fi
39
40 script: php $PWD/typo3/cli_dispatch.phpsh phpunit -c typo3/sysext/core/Build/UnitTests.xml