forked from TYPO3-coreapi/ext-coreapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (47 loc) · 1.87 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
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
env:
- DB=mysql TYPO3=coreapi/develop INTEGRATION=master COVERAGE=0
services:
- memcached
- redis-server
notifications:
email:
slack:
rooms:
- typo3:DHkQdCNWc6x2znPAYA5T2LXO#gsoc-coreapi
before_script:
# Get latest git version cause of travis issues (https://github.com/travis-ci/travis-ci/issues/1710)
- sudo apt-get update && sudo apt-get install git parallel tree
- >
if [[ "$TRAVIS_PHP_VERSION" = "5.3" || "$TRAVIS_PHP_VERSION" = "5.4" ]]; then
echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
echo "apc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
echo "apc.slam_defense=0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
pecl install igbinary > /dev/null;
fi
- echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- cd ..
- git clone --single-branch --branch $INTEGRATION --depth 1 git://github.com/TYPO3-coreapi/TYPO3-Travis-Integration.git build-environment
- source build-environment/install-helper.sh
- git clone --single-branch --branch $TYPO3 --depth 1 https://github.com/TYPO3-coreapi/TYPO3CMS.git core
- mv core/* .
- composer self-update
- composer --dev install
- mkdir -p fileadmin uploads typo3temp typo3conf/ext/
- mv ext-coreapi typo3conf/ext/coreapi
script:
- phpLint typo3conf/ext/coreapi
- >
echo;
echo "Running unit tests";
./bin/phpunit --colors --coverage-clover=coverage.clover -c typo3/sysext/core/Build/UnitTests.xml typo3conf/ext/coreapi/Tests/Unit/
- wget https://scrutinizer-ci.com/ocular.phar
- cp -R typo3conf/ext/coreapi/.git .
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover