[TASK] travis-ci: Execute unit test only 80/53780/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 22 Aug 2017 18:11:00 +0000 (20:11 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 22 Aug 2017 18:25:00 +0000 (20:25 +0200)
travis-ci still chockes on executing the functional tests
which take ages, even with various tricks in place.
The patch reduces the travis execution to unit tests
only since all main tests are executed via our bamboo
environment anyway beforehand.

Change-Id: I809f38d79f0ac7848e6b7e155d35aab575f4d81a
Resolves: #82172
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/53780
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: TYPO3com <no-reply@typo3.com>
.travis.yml

index d72ee2e..111476c 100644 (file)
@@ -1,21 +1,17 @@
 language: php
 
-node_js:
-    - "0.10"
-
 matrix:
   fast_finish: true
 
   include:
     - php: 7
-      env: UNIT_TESTS=yes FUNCTIONAL_TESTS=yes PHP_LINT=yes XLF_CHECK=yes SUBMODULE_TEST=yes
+      env: UNIT_TESTS=yes
 
 sudo: false
 
 addons:
   apt:
     packages:
-      - parallel
       - language-pack-de
 
 cache:
@@ -50,39 +46,9 @@ before_script:
   - echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
   - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
   - COMPOSER_ROOT_VERSION=dev-master composer install
-  - export typo3DatabaseName="typo3"
-  - export typo3DatabaseHost="localhost"
-  - export typo3DatabaseUsername="root"
-  - export typo3DatabasePassword=""
 
 script:
   - >
     if [[ "$UNIT_TESTS" == "yes" ]]; then
       ./bin/phpunit -c vendor/typo3/testing-framework/Resources/Core/Build/UnitTests.xml
     fi
-
-  - >
-    if [[ "$FUNCTIONAL_TESTS" == "yes" ]]; then
-      ./vendor/typo3/testing-framework/Resources/Core/Build/Scripts/splitFunctionalTests.sh 24
-      parallel --jobs 2 -a <(seq 0 23) --gnu './bin/phpunit -c vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTests-Job-{}.xml'
-    fi
-
-  - >
-    if [[ "$PHP_LINT" == "yes" ]]; then
-      find typo3/ -name \*.php -not -path "vendor/*" | parallel --jobs 6 --gnu php -d display_errors=stderr -l {} > /dev/null \;
-    fi
-
-  - >
-    if [[ "$XLF_CHECK" == "yes" ]]; then
-      ./Build/Scripts/xlfcheck.sh
-    fi
-
-  - >
-    if [[ "$SUBMODULE_TEST" == "yes" ]]; then
-      /bin/bash -c "
-        if [[ `git submodule status 2>&1 | wc -l` -ne 0 ]]; then
-          echo \"Found a submodule definition in repository\";
-          exit 99;
-        fi
-      "
-    fi