[TASK] Create uploads folder on travis
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 1 Nov 2012 08:21:20 +0000 (09:21 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Thu, 1 Nov 2012 08:23:22 +0000 (09:23 +0100)
Upload folder is missing, leading to test failures
after activation of warning to error conversion.
Create the folder during setup.

Additionally fix a warning in the FAL tests.

Releases: 6.0

Change-Id: I8762a7f2db07edf84294dccb0d9570434040534a
Reviewed-on: http://review.typo3.org/16096
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
.travis.yml
typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php

index bd3a893..da58e87 100644 (file)
@@ -28,6 +28,7 @@ before_script:
   - mv build-environment/typo3conf .
   - git clone git://git.typo3.org/TYPO3v4/Extensions/phpunit.git typo3conf/ext/phpunit/
   - mkdir fileadmin
+  - mkdir uploads
   - if [[ "$DB" == "mysql" ]]; then mysql -e "DROP DATABASE IF EXISTS typo3_test;" -uroot; fi
   - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS typo3_test;" -uroot; fi
   - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/Introduction/typo3conf/ext/introduction/Resources/Private/Subpackages/Introduction/Database/introduction.sql; fi
index 4471ae1..dc35c60 100644 (file)
@@ -66,6 +66,7 @@ class LocalDriverTest extends \TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCase {
 
        static public function tearDownAfterClass() {
                foreach (self::$testDirs as $dir) {
+                       chmod($dir, 0777);
                        \TYPO3\CMS\Core\Utility\GeneralUtility::rmdir($dir, TRUE);
                }
        }