-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
92 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.github export-ignore | ||
/.gitignore export-ignore | ||
/Build export-ignore | ||
/example.png export-ignore | ||
/Tests export-ignore |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,12 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
SCRIPT_PATH=$( cd $(dirname "${BASH_SOURCE[0]}"); pwd -P ) | ||
ROOT_PATH="$SCRIPT_PATH/../" | ||
PHAR_BUILD_PATH="/tmp/php-solr-explain" | ||
PHAR_COMPOSER_BINARY="/tmp/phar-composer" | ||
|
||
cd "$ROOT_PATH" | ||
rm -fR .Build | ||
composer install --no-dev | ||
if [[ ! -f $PHAR_COMPOSER_BINARY ]]; then | ||
wget https://github.com/clue/phar-composer/releases/download/v1.4.0/phar-composer-1.4.0.phar -O $PHAR_COMPOSER_BINARY | ||
chmod +x $PHAR_COMPOSER_BINARY | ||
fi | ||
|
||
cd .. | ||
wget https://github.com/clue/phar-composer/releases/download/v1.4.0/phar-composer-1.4.0.phar -O phar-composer | ||
php phar-composer build "$ROOT_PATH/../php-solr-explain" | ||
rm -Rf $PHAR_BUILD_PATH | ||
mkdir $PHAR_BUILD_PATH | ||
git archive --format=tar --prefix=php-solr-explain/ HEAD | (cd "/tmp" && tar xf -) | ||
composer install --no-dev --working-dir=$PHAR_BUILD_PATH | ||
|
||
mkdir -p ".Build/bin" | ||
/tmp/phar-composer build $PHAR_BUILD_PATH ".Build/bin/php-solr-explain.phar" | ||
|
||
rm -Rf $PHAR_COMPOSER_BINARY $PHAR_BUILD_PATH |
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,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" | ||
bootstrap="../../.Build/vendor/autoload.php" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
forceCoversAnnotation="false" | ||
processIsolation="false" | ||
stopOnError="false" | ||
stopOnFailure="false" | ||
stopOnIncomplete="false" | ||
stopOnSkipped="false" | ||
verbose="false" | ||
> | ||
<coverage processUncoveredFiles="false"> | ||
<include> | ||
<directory suffix=".php">../../Classes/</directory> | ||
</include> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="php-solr-explain-unit-tests"> | ||
<directory suffix="TestCase.php">../../Tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
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 |
---|---|---|
|
@@ -2,12 +2,22 @@ | |
"name": "apache-solr-for-typo3/php-solr-explain", | ||
"description": "PHP explain library for apache solr", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Timo Hund", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "Michael Klapper", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.4.0", | ||
"ext-dom": "*" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^8 || ^9.5" | ||
"phpunit/phpunit": "^9.5" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
@@ -24,14 +34,20 @@ | |
"vendor-dir": ".Build/vendor", | ||
"bin-dir": ".Build/bin" | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Timo Hund", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "Michael Klapper", | ||
"email": "[email protected]" | ||
} | ||
] | ||
"scripts-descriptions": { | ||
"build:phar": "Builds php-solr-explain.phar file from this library.", | ||
"tests:setup": "Installs composer dependencies, requiered for tests.", | ||
"tests:unit": "Runs unit tests" | ||
}, | ||
"scripts": { | ||
"build:phar": [ | ||
"./Build/phar.sh" | ||
], | ||
"tests:setup": [ | ||
"@composer install" | ||
], | ||
"tests:unit": [ | ||
"phpunit --config Build/Test/phpunit.xml --colors" | ||
] | ||
} | ||
} |