[TASK] Add hhvm to travis 02/33902/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 8 Nov 2014 11:29:39 +0000 (12:29 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 8 Nov 2014 14:34:06 +0000 (15:34 +0100)
Running the test suite with hhvm shows some code smells and
actual issues the core with this interpreter. While unit tests
are in a fairly good shape already, functionals are still
totally broken.

Having hhvm in our standard test suite in travis as
"allowed failure" is a first step to raise awareness towards
this topic.

Change-Id: Ia684965af9e43ccbce791a10ba664fc49a86191a
Resolves: #62783
Releases: master
Reviewed-on: http://review.typo3.org/33902
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
.travis.yml

index 3ee0301..99906da 100644 (file)
@@ -3,6 +3,11 @@ language: php
 php:
   - 5.5
   - 5.6
+  - hhvm-nightly
+
+matrix:
+  allow_failures:
+    - php: hhvm-nightly
 
 env:
   - DB=mysql
@@ -25,11 +30,11 @@ notifications:
     on_failure: always
 
 before_script:
-  - echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
-  - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
+  - 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
   - composer self-update
-  - composer --dev install
+  - composer install
 
 script:
   - >