Skip to content
Permalink
Browse files

[TASK] Switch travis-ci to container based builds

Resolves: #67775
Releases: master
Change-Id: I30522630218f2dd8c87ec607fd2bbed5efe3f3ad
Reviewed-on: http://review.typo3.org/40682
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
  • Loading branch information...
lolli42 authored and Andreas Fernandez committed Jun 27, 2015
1 parent 3a1beeb commit c758e6dd3c408e3b01bdc1efe94607f670a14271
Showing with 10 additions and 4 deletions.
  1. +10 −4 .travis.yml
@@ -1,6 +1,7 @@
language: php

matrix:
fast_finish: true
allow_failures:
- php: 7

@@ -12,6 +13,12 @@ matrix:
- php: 7
env: UNIT_TESTS=yes

sudo: false

cache:
directories:
- $HOME/.composer/cache

services:
- memcached
- redis-server
@@ -30,11 +37,10 @@ notifications:
on_failure: always

before_script:
- mkdir parallel && cd parallel && wget http://ftp.gnu.org/gnu/parallel/parallel-latest.tar.bz2 && tar xvf parallel-latest.tar.bz2 -C . --strip-components=1 && ./configure && make && cd ..
- if [ -e ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ]; then echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
- if [ -e ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ]; then echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
- sudo apt-get install parallel
- rm -rf typo3/sysext/compatibility6
- composer self-update
- composer install

script:
@@ -51,13 +57,13 @@ script:
export typo3DatabaseHost="localhost";
export typo3DatabaseUsername="root";
export typo3DatabasePassword="";
find . -wholename '*typo3/sysext/*/Tests/Functional/*Test.php' | parallel --gnu 'echo; echo "Running functional test suite {}"; ./bin/phpunit --colors -c typo3/sysext/core/Build/FunctionalTests.xml {}'
find . -wholename '*typo3/sysext/*/Tests/Functional/*Test.php' | ./parallel/src/parallel --gnu --will-cite 'echo; echo "Running functional test suite {}"; ./bin/phpunit --colors -c typo3/sysext/core/Build/FunctionalTests.xml {}'
fi
- >
if [[ "$PHP_LINT" == "yes" ]]; then
echo;
echo "Running php lint";
find typo3/ -name \*.php -not -path "typo3/contrib/vendor/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
find typo3/ -name \*.php -not -path "typo3/contrib/vendor/*" | ./parallel/src/parallel --gnu --will-cite php -d display_errors=stderr -l {} > /dev/null \;
fi
- >
if [[ "$XLF_CHECK" == "yes" ]]; then

0 comments on commit c758e6d

Please sign in to comment.
You can’t perform that action at this time.