[TASK] Execute standalone functional tests in travis 38/23138/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 16 Aug 2013 14:15:58 +0000 (16:15 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 16 Aug 2013 15:07:27 +0000 (17:07 +0200)
Change-Id: If9195b5ef908ecf09d1a03f07f93cf983beaf474
Resolves: #51121
Releases: 6.2
Reviewed-on: https://review.typo3.org/23138
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
.travis.yml

index 8c077b1..92bd69e 100644 (file)
@@ -7,6 +7,7 @@ php:
 
 env:
   - DB=mysql UNITTESTS=1
+  - DB=none FUNCTIONALTESTS=1
   - DB=none PHPLINT=1
 
 services:
@@ -34,6 +35,15 @@ before_script:
     fi
 
   - >
+    if [[ "$FUNCTIONALTESTS" == "1" ]]; then
+       mv build-environment/typo3conf .
+       git clone --single-branch --branch master --depth 1 git://git.typo3.org/TYPO3v4/Extensions/phpunit.git typo3conf/ext/phpunit/
+       mkdir typo3temp
+       chmod u+x ./typo3conf/ext/phpunit/Composer/vendor/bin/phpunit
+       chmod u+x ./typo3conf/ext/phpunit/Composer/vendor/phpunit/phpunit/composer/bin/phpunit
+    fi
+
+  - >
     if [[ "$DB" == "mysql" ]]; then
        mysql -e "DROP DATABASE IF EXISTS typo3_test;" -uroot
        mysql -e "CREATE DATABASE IF NOT EXISTS typo3_test;" -uroot
@@ -50,3 +60,7 @@ script:
     if [[ "$UNITTESTS" == "1" ]]; then
        php $PWD/typo3/cli_dispatch.phpsh phpunit -c typo3/sysext/core/Build/UnitTests.xml
     fi
+  - >
+    if [[ "$FUNCTIONALTESTS" == "1" ]]; then
+       ./typo3conf/ext/phpunit/Composer/vendor/bin/phpunit -c typo3/sysext/core/Build/FunctionalTests.xml
+    fi
\ No newline at end of file