[TASK] Change travis configuration to build PHP modules
[Packages/TYPO3.CMS.git] / .travis.yml
1 language: php
2 php:
3 - 5.3
4
5 env:
6 - DB=mysql
7
8 branches:
9 only:
10 - master
11
12 before_script:
13 # TODO hh 2012-04-16 Move the build environment to a more official place
14 - git clone git://github.com/typo3-ci/TYPO3-Travis-Integration.git build-environment
15 - git clone git://git.typo3.org/TYPO3v4/Distributions/Introduction.git build-environment/Introduction
16 - mv build-environment/typo3conf .
17 - git clone git://git.typo3.org/TYPO3v4/Extensions/phpunit.git typo3conf/ext/phpunit/
18 - mkdir fileadmin
19 - if [[ "$DB" == "mysql" ]]; then mysql -e "DROP DATABASE IF EXISTS typo3_test;" -uroot; fi
20 - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS typo3_test;" -uroot; fi
21 - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/Introduction/typo3conf/ext/introduction/Resources/Private/Subpackages/Introduction/Database/introduction.sql; fi
22 - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/dbimport/cli_users.sql; fi
23 - /bin/bash build-environment/install-php-extensions.sh > /dev/null 2>&1
24
25 script: php $PWD/typo3/cli_dispatch.phpsh phpunit $PWD/tests/