Skip to content

Commit

Permalink
backup commit
Browse files Browse the repository at this point in the history
  • Loading branch information
k00ni committed Apr 12, 2024
1 parent adafe11 commit 1cd35fb
Show file tree
Hide file tree
Showing 16 changed files with 859 additions and 580 deletions.
2 changes: 1 addition & 1 deletion docker/custom.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
memory_limit = 3G
memory_limit = 1G
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 600
Expand Down
1 change: 1 addition & 0 deletions scripts/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.phpunit.cache
cache
composer.lock
vendor
Expand Down
3 changes: 3 additions & 0 deletions scripts/.php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/bin')
->in(__DIR__.'/src')
->in(__DIR__.'/test')
->in(__DIR__.'/tests')
->name('*.php')
->append([
__FILE__,
Expand All @@ -16,6 +18,7 @@
->setFinder($finder)
->setRules([
'@PSR12' => true,
'no_unused_imports' => true,
])
;

Expand Down
118 changes: 0 additions & 118 deletions scripts/bin/read-bioportal

This file was deleted.

153 changes: 0 additions & 153 deletions scripts/bin/read-dbpedia-archivo

This file was deleted.

24 changes: 24 additions & 0 deletions scripts/bin/run.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

declare(strict_types=1);

use App\Cache;
use App\Extractor\DBpediaArchivo;
use App\Extractor\LinkedOpenVocabularies;
use quickRdf\DataFactory;

/**
* Executes all extractors.
*/

require 'bootstrap.php';

global $cache;
$cache = new Cache();
$dataFactory = new DataFactory();

(new LinkedOpenVocabularies($cache, $dataFactory))->run();
// (new DBpediaArchivo($cache, $dataFactory))->run();

echo PHP_EOL;
echo PHP_EOL;
7 changes: 5 additions & 2 deletions scripts/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.49.0",
"phpstan/phpstan": "^1",
"phpstan/phpstan-strict-rules": "^1.1"
"phpstan/phpstan-strict-rules": "^1.1",
"phpunit/phpunit": "^11"
},
"autoload": {
"files": [
"src/functions.php"
],
"psr-4": {
"App\\": "src/"
"App\\": "src/",
"Test\\": "test/",
"Tests\\": "tests/"
}
}
}
23 changes: 23 additions & 0 deletions scripts/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.1/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheDirectory=".phpunit.cache"
executionOrder="depends,defects"
requireCoverageMetadata="false"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
failOnRisky="true"
failOnWarning="true">
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>

<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
</include>
</source>
</phpunit>
Loading

0 comments on commit 1cd35fb

Please sign in to comment.