Skip to content

Commit 1e6e4e0

Browse files
committed
Initial version
0 parents  commit 1e6e4e0

File tree

15 files changed

+683
-0
lines changed

15 files changed

+683
-0
lines changed

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
vendor/
2+
composer.lock
3+
nbproject/
4+
node_modules/
5+
**/settings.local.php
6+
api-test/node_modules/
7+
api-test/npm-debug.log
8+
doc/
9+
apidoc
10+
build/
11+
localsettings.php
12+
localTestsSettings.php
13+
.idea/**
14+
.idea
15+
certs
16+
files/**

.gitlab-ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
before_script:
2+
- composer install --no-interaction --dev --prefer-dist
3+
- mkdir -p build/
4+
- mkdir -p build/logs
5+
stages:
6+
- test
7+
8+
#phpunit:
9+
# stage: test
10+
# script:
11+
# - php ./vendor/bin/phpunit
12+
13+
14+
test:
15+
stage: test
16+
script:
17+
- find src/ -name '*.php' -print0 | xargs -0 -L 1 php -l
18+
# - find public/ -name '*.php' -print0 | xargs -0 -L 1 php -l
19+
- find tests/ -name '*.php' -print0 | xargs -0 -L 1 php -l
20+
# - php ./vendor/bin/testphase -i -d ./tests/testphase/ -b ./tests/testphase/bootstrap.php --verbose --server-host=localhost:8005

README.md

Whitespace-only changes.

composer.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "phramework/api-sdk",
3+
"homepage": "https://phramework.github.io/",
4+
"authors": [
5+
{
6+
"name": "Xenofon Spafaridis",
7+
"email": "[email protected]",
8+
"homepage": "https://nohponex.gr"
9+
},
10+
{
11+
"name": "Alexandros Kalliontzis",
12+
"email": "[email protected]"
13+
}
14+
],
15+
"require": {
16+
"php": ">=7",
17+
"phramework/util": "^0.0.0",
18+
"phramework/jsonapi": "1.0.0-RC9"
19+
},
20+
"require-dev": {
21+
"squizlabs/php_codesniffer": "*",
22+
"phpunit/phpunit": "5.*"
23+
},
24+
"minimum-stability": "dev",
25+
"prefer-stable": true,
26+
"autoload": {
27+
"psr-4": {
28+
"Phramework\\APISDK\\": "src"
29+
}
30+
},
31+
"scripts": {
32+
"test": [
33+
"find src/ -name '*.php' -print0 | xargs -0 -L 1 php -l",
34+
"find tests/ -name '*.php' -print0 | xargs -0 -L 1 php -l",
35+
"phpunit"
36+
],
37+
"lint": "php ./vendor/bin/phpcs -p -s --standard=RSR2 ./src ./public ./queued"
38+
}
39+
}

phpunit.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
backupGlobals="true"
4+
bootstrap="./tests/bootstrap.php"
5+
verbose="false"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
stopOnFailure="false"
11+
logIncompleteSkipped="false"
12+
debug="true">
13+
14+
<testsuite name="PHPUnit">
15+
<directory suffix="Test.php">./tests/src/</directory>
16+
<exclude>../tests/phpunit/_fixture</exclude>
17+
</testsuite>
18+
19+
<logging>
20+
<log type="tap" target="build/report.tap"/>
21+
<log type="junit" target="build/report.junit.xml"/>
22+
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
23+
<log type="coverage-text" target="build/coverage.txt"/>
24+
<log type="coverage-clover" target="build/logs/clover.xml"/>
25+
</logging>
26+
27+
<filter>
28+
<whitelist addUncoveredFilesFromWhitelist="false">
29+
<directory suffix=".php">./src</directory>
30+
</whitelist>
31+
</filter>
32+
</phpunit>

0 commit comments

Comments
 (0)