mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-22 22:46:57 +01:00
Initial commit
This commit is contained in:
commit
8d475e74dc
19
.editorconfig
Normal file
19
.editorconfig
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# editorconfig.org
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
[Makefile]
|
||||||
|
indent_style = tab
|
||||||
|
|
||||||
|
[.travis.yml]
|
||||||
|
indent_size = 2
|
7
.gitattributes
vendored
Normal file
7
.gitattributes
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
*.php diff=php
|
||||||
|
|
||||||
|
#/.gitattributes export-ignore
|
||||||
|
#/.gitignore export-ignore
|
||||||
|
#/.php_cs export-ignore
|
||||||
|
#/.travis.ini export-ignore
|
||||||
|
#/.travis.yml export-ignore
|
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/build/
|
||||||
|
/vendor/
|
||||||
|
# /composer.lock
|
||||||
|
|
||||||
|
/.php_cs.cache
|
24
.php_cs
Normal file
24
.php_cs
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
$header = <<<'EOF'
|
||||||
|
This file is part of <package name>.
|
||||||
|
|
||||||
|
This source file is subject to the license that is bundled
|
||||||
|
with this source code in the file LICENSE.
|
||||||
|
EOF;
|
||||||
|
|
||||||
|
$finder = PhpCsFixer\Finder::create()
|
||||||
|
->exclude(['build', 'vendor'])
|
||||||
|
->in(__DIR__);
|
||||||
|
|
||||||
|
return PhpCsFixer\Config::create()
|
||||||
|
->setFinder($finder)
|
||||||
|
->setUsingCache(true)
|
||||||
|
->setRules([
|
||||||
|
'@Symfony' => true,
|
||||||
|
'header_comment' => ['header' => $header],
|
||||||
|
'phpdoc_align' => false,
|
||||||
|
'phpdoc_order' => true,
|
||||||
|
'ordered_imports' => true,
|
||||||
|
'array_syntax' => ['syntax' => 'short'],
|
||||||
|
]);
|
18
.travis.yml
Normal file
18
.travis.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
language: php
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
|
include:
|
||||||
|
- php: 7.2
|
||||||
|
- php: 7.2
|
||||||
|
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.composer/cache
|
||||||
|
|
||||||
|
install:
|
||||||
|
- composer update ${COMPOSER_FLAGS} --no-interaction
|
||||||
|
|
||||||
|
script:
|
||||||
|
- make tests
|
3
CHANGELOG.md
Normal file
3
CHANGELOG.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# CHANGELOG
|
||||||
|
|
||||||
|
1. 0-0#
|
25
Makefile
Normal file
25
Makefile
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
.PHONY: help tests
|
||||||
|
.DEFAULT_GOAL := help
|
||||||
|
|
||||||
|
help:
|
||||||
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-12s\033[0m %s\n", $$1, $$2}'
|
||||||
|
|
||||||
|
tests: ## Executes the test suite
|
||||||
|
vendor/bin/phpunit
|
||||||
|
|
||||||
|
coverage: ## Executes the test suite and creates code coverage reports
|
||||||
|
vendor/bin/phpunit --coverage-html build/coverage
|
||||||
|
|
||||||
|
view-coverage: ## Shows the code coverage report
|
||||||
|
open build/coverage/index.html
|
||||||
|
|
||||||
|
cs: ## Fixes coding standard problems
|
||||||
|
vendor/bin/php-cs-fixer fix || true
|
||||||
|
|
||||||
|
tag: ## Creates a new signed git tag
|
||||||
|
$(if $(TAG),,$(error TAG is not defined. Pass via "make tag TAG=X.X.X"))
|
||||||
|
@echo Tagging $(TAG)
|
||||||
|
chag update $(TAG)
|
||||||
|
git add --all
|
||||||
|
git commit -m 'Release $(TAG)'
|
||||||
|
git tag -s $(TAG) -m 'Release $(TAG)'
|
34
README.md
Normal file
34
README.md
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
# Lib Pairtwo
|
||||||
|
|
||||||
|
Copyright 2018- (c) Jeroen De Meerleer <schaak@jeroened.be>
|
||||||
|
|
||||||
|
This library reads and writes sws-files that are saved using PairTwo developed by the Belgian Chess Federation (KBSB-FRBE).
|
||||||
|
|
||||||
|
## Special thanks
|
||||||
|
|
||||||
|
* Daniel Halleux (Webmaster KBSB - Developer PairTwo)
|
||||||
|
|
||||||
|
## Licence
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright 2018- (c) Jeroen De Meerleer <schaak@jeroened.be>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
29
composer.json
Normal file
29
composer.json
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"name": "kreait/php-boilerplate",
|
||||||
|
"description": "A boilerplate for new composer based PHP projects.",
|
||||||
|
"keywords": ["boilerplate", "skeleton"],
|
||||||
|
"license": "MIT",
|
||||||
|
"require": {
|
||||||
|
"php": "^7.2"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "^7.0",
|
||||||
|
"friendsofphp/php-cs-fixer": "^2.0"
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Vendor\\Package\\": "src"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"psr-4": {
|
||||||
|
"Vendor\\Package\\": "tests"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"platform": {
|
||||||
|
"php": "7.2"
|
||||||
|
},
|
||||||
|
"sort-packages": true
|
||||||
|
}
|
||||||
|
}
|
2577
composer.lock
generated
Normal file
2577
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
21
phpunit.xml.dist
Normal file
21
phpunit.xml.dist
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<phpunit
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/7.0/phpunit.xsd"
|
||||||
|
colors="true">
|
||||||
|
<testsuites>
|
||||||
|
<testsuite name="Test Suite">
|
||||||
|
<directory>./tests</directory>
|
||||||
|
</testsuite>
|
||||||
|
</testsuites>
|
||||||
|
|
||||||
|
<filter>
|
||||||
|
<whitelist>
|
||||||
|
<directory suffix=".php">./src</directory>
|
||||||
|
<exclude>
|
||||||
|
<directory>./tests</directory>
|
||||||
|
<directory>./vendor</directory>
|
||||||
|
</exclude>
|
||||||
|
</whitelist>
|
||||||
|
</filter>
|
||||||
|
</phpunit>
|
0
src/.gitkeep
Normal file
0
src/.gitkeep
Normal file
0
tests/.gitkeep
Normal file
0
tests/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user