-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Simplify EXT:Solr* plugins ingetration : EXT:Tika
* Simplifies the integration/installation of EXT:Tika * Improves tika test environment Set environment variables in order to run tika integration and unit tests within the ddev environment. Closes: #18
- Loading branch information
Showing
14 changed files
with
137 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
#!/bin/bash | ||
|
||
## Description: run integration tests in web container | ||
TIKA_VERSION=$(yq e '.env.TIKA_VERSION' packages/ext-tika/.github/workflows/ci.yml) | ||
TIKA_SERVER_SOURCE="https://archive.apache.org/dist/tika/" | ||
if [ ! -f "$TIKA_PATH/tika-app-$TIKA_VERSION.jar" ]; then | ||
echo "The the Tika App jar binaries will be downloaded. They are required for integration tests of tika." | ||
wget ${TIKA_SERVER_SOURCE}tika-app-$TIKA_VERSION.jar -O "$TIKA_PATH/tika-app-$TIKA_VERSION.jar" | ||
if [ ! -f "$TIKA_PATH/tika-app-$TIKA_VERSION.jar" ]; then | ||
echo "Could not download tika-app-$TIKA_VERSION.jar from ${TIKA_SERVER_SOURCE}tika-app-$TIKA_VERSION.jar URL" | ||
exit 1 | ||
fi | ||
echo "Download of tika-app-$TIKA_VERSION.jar successful. See \".ddev/tika-jars\", which is mounted in web containers \"/opt/tika\" path." | ||
fi | ||
|
||
UNIT_BOOTSTRAP="vendor/nimut/testing-framework/res/Configuration/FunctionalTestsBootstrap.php" | ||
SOLR_UNIT_TESTS_PATH="public/typo3conf/ext/tika/Build/Test/IntegrationTests.xml" | ||
|
||
|
||
./vendor/bin/phpunit --colors -c $SOLR_UNIT_TESTS_PATH --bootstrap=$UNIT_BOOTSTRAP "$@" | ||
INTEGRATION_BOOTSTRAP="vendor/nimut/testing-framework/res/Configuration/FunctionalTestsBootstrap.php" | ||
INTEGRATION_CONFIGURATION="public/typo3conf/ext/tika/Build/Test/IntegrationTests.xml" | ||
./vendor/bin/phpunit \ | ||
--bootstrap=$INTEGRATION_BOOTSTRAP \ | ||
--configuration $INTEGRATION_CONFIGURATION \ | ||
--colors "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
xdebug.mode=debug,develop,coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,5 @@ nbproject | |
.ddev/solr/tests | ||
|
||
/releses/ | ||
|
||
.ddev/tika-jars/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "apache-solr-for-typo3/introduction-tika", | ||
"type": "typo3-cms-extension", | ||
"description": "Solr development site : EXT:tika for Introduction", | ||
"homepage": "http://www.dkd.de/", | ||
"license": ["GPL-2.0-or-later"], | ||
"keywords": ["TYPO3 CMS"], | ||
"version": "1.0.0", | ||
"require": { | ||
"apache-solr-for-typo3/tika": "@dev" | ||
}, | ||
"extra": { | ||
"typo3/cms": { | ||
"extension-key": "introduction_tika" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
/** | ||
* Extension Manager/Repository config file for ext "introduction_tika". | ||
*/ | ||
$EM_CONF[$_EXTKEY] = [ | ||
'title' => 'Apache Solr for TYPO3 Sitepackage : EXT:tika for Introduction', | ||
'description' => 'Solr development site : EXT:tika Introduction', | ||
'category' => 'distribution', | ||
'constraints' => [ | ||
'depends' => [ | ||
'typo3' => '10.4.0-10.4.99', | ||
'tika' => '*' | ||
], | ||
'conflicts' => [ | ||
], | ||
], | ||
'state' => 'stable', | ||
'uploadfolder' => 0, | ||
'createDirs' => '', | ||
'clearCacheOnLoad' => 1, | ||
'author' => 'dkd Internet Service GmbH', | ||
'author_email' => '[email protected]', | ||
'author_company' => 'dkd', | ||
'version' => '1.0.0', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
defined('TYPO3_MODE') || die(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters