[TASK] Switch travis-ci to container based builds 82/40682/4
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 27 Jun 2015 11:21:14 +0000 (13:21 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Sat, 27 Jun 2015 12:30:06 +0000 (14:30 +0200)
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>
.travis.yml

index ba9dfa2..98cb8e7 100644 (file)
@@ -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