[TASK] Add support for PHP 5.4 in Travis-CI build file
[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 - master
12
13 before_script:
14 # TODO hh 2012-04-16 Move the build environment to a more official place
15 - git clone git://github.com/typo3-ci/TYPO3-Travis-Integration.git build-environment
16 - git clone git://git.typo3.org/TYPO3v4/Distributions/Introduction.git build-environment/Introduction
17 - mv build-environment/typo3conf .
18 - git clone git://git.typo3.org/TYPO3v4/Extensions/phpunit.git typo3conf/ext/phpunit/
19 - mkdir fileadmin
20 - if [[ "$DB" == "mysql" ]]; then mysql -e "DROP DATABASE IF EXISTS typo3_test;" -uroot; fi
21 - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS typo3_test;" -uroot; fi
22 - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/Introduction/typo3conf/ext/introduction/Resources/Private/Subpackages/Introduction/Database/introduction.sql; fi
23 - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/dbimport/cli_users.sql; fi
24 - /bin/bash build-environment/install-php-extensions.sh > /dev/null 2>&1
25
26 script: php $PWD/typo3/cli_dispatch.phpsh phpunit $PWD/tests/