[TASK] Travis setup without Introduction package 23/22723/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 30 Jul 2013 14:29:35 +0000 (16:29 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 30 Jul 2013 16:04:30 +0000 (18:04 +0200)
In travis, the introduction package is used to import the database
schema to successfully run the unit tests.
This is now substituted with a small php based script in the
travis integration repository, that basically imports the base schema
by running code similar to the according step in the installation
process. Cloning the introduction package is no longer needed.
Travis will now for automatically adapt to database schema changes
defined in ext_tables.sql scripts and without changing foreign
repositories anymore.

Change-Id: If246650acfabde119d4e02c78d5449ab8d44feef
Resolves: #50571
Releases: 6.2
Reviewed-on: https://review.typo3.org/22723
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
.travis.yml

index bfe8e9d..1e6bb7b 100644 (file)
@@ -21,17 +21,15 @@ before_script:
   - if [[ "$TRAVIS_PHP_VERSION" == "5.3" ]]; then installPhpModule -y apc; fi
 
 # Install rudimentary TYPO3
-  - if [[ "$PHPUNIT" == "1" ]]; then git clone --single-branch --branch master --depth 1 git://git.typo3.org/TYPO3v4/Distributions/Introduction.git build-environment/Introduction; fi
   - if [[ "$PHPUNIT" == "1" ]]; then mv build-environment/typo3conf .; fi
   - if [[ "$PHPUNIT" == "1" ]]; then git clone --single-branch --branch master --depth 1 git://git.typo3.org/TYPO3v4/Extensions/phpunit.git typo3conf/ext/phpunit/; fi
   - if [[ "$PHPUNIT" == "1" ]]; then mkdir fileadmin; fi
   - if [[ "$PHPUNIT" == "1" ]]; then mkdir uploads; fi
+  - if [[ "$PHPUNIT" == "1" ]]; then mkdir typo3temp; fi
   - 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
-  - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/dbimport/cache_tables.sql; fi
+  - if [[ "$DB" == "mysql" ]]; then mysql -e "CREATE DATABASE IF NOT EXISTS typo3_test;" -uroot; fi
+  - if [[ "$DB" == "mysql" ]]; then php build-environment/dbimport/DatabaseImport.php; fi
   - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/dbimport/cli_users.sql; fi
-  - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/dbimport/phpunit.sql; fi
 
 script:
   - if [[ "$PHPLINT" == "1" ]]; then phpLint all; fi