[TASK] travi-ci: Disable hhvm functionals, linter, xlf tests 61/34961/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 2 Dec 2014 22:28:14 +0000 (23:28 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 2 Dec 2014 22:55:15 +0000 (23:55 +0100)
travis builds with hhvm take 20 times the time as PHP.
Since functionals are fully failing at the moment and unit tests
should be fixed first, functional tests as well as linting and
language checks are disabled on hhvm in travis for now.

Change-Id: I240a51ac098df1e2e1bcad0b6fb7dd949b8e6685
Releases: master
Reviewed-on: http://review.typo3.org/34961
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
.travis.yml

index 58742b5..0e5b9aa 100644 (file)
@@ -43,22 +43,28 @@ script:
     echo "Running unit tests";
     ./bin/phpunit --colors -c typo3/sysext/core/Build/UnitTests.xml
   - >
-    echo;
-    export typo3DatabaseName="typo3";
-    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 {}'
+    if [[ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]]; then
+        echo;
+        export typo3DatabaseName="typo3";
+        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 {}'
+    fi
   - >
-    echo;
-    echo "Running php lint";
-    /bin/bash -c "
-        if ! find typo3/ -name \*.php | parallel --gnu 'php -l {}' > /tmp/errors 2>&1; then
-            grep -v \"No syntax errors detected in\" /tmp/errors;
-            exit 99;
-        fi
-    "
+    if [[ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]]; then
+        echo;
+        echo "Running php lint";
+        /bin/bash -c "
+            if ! find typo3/ -name \*.php | parallel --gnu 'php -l {}' > /tmp/errors 2>&1; then
+                grep -v \"No syntax errors detected in\" /tmp/errors;
+                exit 99;
+            fi
+        "
+    fi
   - >
-    echo;
-    echo "Running XLF checker";
-    ./typo3/sysext/core/Build/Scripts/xlfcheck.sh
+    if [[ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]]; then
+        echo;
+        echo "Running XLF checker";
+        ./typo3/sysext/core/Build/Scripts/xlfcheck.sh
+    fi