forked from TYPO3/typo3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (54 loc) · 1.75 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
language: php
php:
- 5.3
- 5.4
- 5.5
env:
- DB=mysql UNITTESTS=1
- DB=none FUNCTIONALTESTS=1
- DB=none PHPLINT=1
services:
- memcached
before_script:
- git clone --single-branch --branch master --depth 1 git://github.com/typo3-ci/TYPO3-Travis-Integration.git build-environment
- source build-environment/install-helper.sh
- >
if [[ "$UNITTESTS" == "1" ]]; then
if [[ "$TRAVIS_PHP_VERSION" == "5.3" ]]; then
installPhpModule -y apc;
fi
if [[ "$TRAVIS_PHP_VERSION" != "5.5" ]]; then
installPhpModule igbinary
fi
installPhpModule -y memcache
installPhpModule redis
mv build-environment/typo3conf .
git clone --single-branch --branch master --depth 1 git://git.typo3.org/TYPO3v4/Extensions/phpunit.git typo3conf/ext/phpunit/
mkdir fileadmin
mkdir uploads
mkdir typo3temp
fi
- >
if [[ "$FUNCTIONALTESTS" == "1" ]]; then
mv build-environment/typo3conf .
git clone --single-branch --branch master --depth 1 git://git.typo3.org/TYPO3v4/Extensions/phpunit.git typo3conf/ext/phpunit/
mkdir typo3temp
fi
- >
if [[ "$DB" == "mysql" ]]; then
mysql -e "DROP DATABASE IF EXISTS typo3_test;" -uroot
mysql -e "CREATE DATABASE IF NOT EXISTS typo3_test;" -uroot
php build-environment/dbimport/DatabaseImport.php
mysql -uroot typo3_test < build-environment/dbimport/cli_users.sql
fi
script:
- >
if [[ "$PHPLINT" == "1" ]]; then
phpLint all
elif [[ "$UNITTESTS" == "1" ]]; then
php $PWD/typo3/cli_dispatch.phpsh phpunit -c typo3/sysext/core/Build/UnitTests.xml
elif [[ "$FUNCTIONALTESTS" == "1" ]]; then
./typo3conf/ext/phpunit/Composer/vendor/bin/phpunit -c typo3/sysext/core/Build/FunctionalTests.xml
else
exit 1
fi