Skip to content

Commit a78aa2f

Browse files
Merge pull request #1 from quillstack/feature/storage-interface
Common interface for storage classes
2 parents 9f70d98 + 6c5eeec commit a78aa2f

11 files changed

Lines changed: 148 additions & 8 deletions

.gitignore

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
composer.phar
1+
/.DS_Store/
2+
/.idea/
3+
/.scannerwork/
4+
/coverage/
25
/vendor/
3-
4-
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
5-
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
6-
# composer.lock
6+
composer.phar
7+
composer.lock
8+
.phpunit.result.cache
9+
phpunit.*.xml

.scrutinizer.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
buil.d:
2+
environment:
3+
php:
4+
version: '8.0'

.styleci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
risky: false
2+
version: 8
3+
preset: psr12
4+
finder:
5+
exclude:
6+
- "vendor"
7+
name: "*.php"

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: php
2+
sudo: false
3+
php:
4+
- 8.0
5+
cache:
6+
directories:
7+
- $HOME/.composer/cache
8+
addons:
9+
sonarcloud:
10+
organization: "quillstack"
11+
token:
12+
secure: "GuBA5S7wH1vaarsgNTmOqdvNEONJADn3YhH2n8jQxCD2PJ7Gq8buCkZ4zML9L7QhSWTFu47CeXOU25TxkoMMDkr0hwFgW8L4K+w2Mw1UxqBGyEA/1JRLS62x7ynrQzUFBSR5x+gX4rNQM3F2c94d4gQWC5Y+vxEZVQJSTgLAbOis9j2GLhpMQTyOoxMHUnID9bnjYWqqVVwiXtqUVtW3TKlAodIbC9M2HK2Ex9oMWY0PN0VycFE9fP6nrnYqpuPlsukVsm+npcyzEqDpETsnHUiKBsjYnQ0StsHKGAuSTlhxwWVEzUCNWiJV2GZ6yGDnjvvwoNFAsmKUQfx3TGJvULrWQSQxOMyGXlMPqczPmj7WX662k0r73ssg4kWgi3A2pt8zKVbcOiUiVMd7lMjdIy4YiySbiuJWE93lKgFHEZ2iCdRt0sO0CZnHgPgWFzgZjW6NM4JWG9JsUg6CpekXwfdM6umg3DkHKajZtCgvk2kgml6fMIUxL9bbln3SOl7GBzVXSmoho5Zyrmo/YkUajTQXYqJd4McHaq+q4sQo4YvdXQnKnnnzDk6dt6dTgMve4lqXdLaUHMcOMQBWfq1eR/IBZ6RVS+fGlzxACIPBSPB1HmQjzteI2bN20d+pKHcrQuDn/FyIjOMMmrXL5fe/MsS2x4T+g01v0IYum7IvNh8="
13+
git:
14+
depth: false
15+
install: composer update --no-interaction --no-suggest --no-progress
16+
script:
17+
- phpdbg -qrr vendor/bin/phpunit --coverage-clover phpunit.coverage.xml --log-junit phpunit.report.xml
18+
- sonar-scanner

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM php:8-cli-alpine
2+
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
3+
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
4+
RUN php composer-setup.php
5+
RUN php -r "unlink('composer-setup.php');"
6+
RUN mv composer.phar /usr/local/bin/composer

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 The Quill Stack
3+
Copyright (c) 2021 Quillstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
# storage-interface
2-
Common interface for Storage classes.
1+
# Quillstack Storage Interface
2+
Common configuration files for different repositories.
3+
4+
```shell
5+
docker exec -w /var/www/html -it quillstack_storage_interface sh
6+
```

composer.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"description": "Common interface for Storage classes.",
3+
"type": "library",
4+
"license": "MIT",
5+
"keywords": [
6+
"interface",
7+
"php8",
8+
"storage",
9+
"quillstack"
10+
],
11+
"homepage": "https://quillstack.org/storage-interface",
12+
"authors": [
13+
{
14+
"name": "Radek Ziemniewicz",
15+
"email": "radek@quillstack.org"
16+
}
17+
],
18+
"autoload": {
19+
"psr-4": {
20+
"Quillstack\\StorageInterface\\": "src/"
21+
}
22+
}
23+
}

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: '3'
2+
services:
3+
php:
4+
build: .
5+
container_name: quillstack_storage_interface
6+
tty: true
7+
volumes:
8+
- .:/var/www/html

sonar-project.properties

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
sonar.projectKey=quillstack_storage-interface
2+
sonar.organization=quillstack
3+
4+
sonar.sources=src
5+
sonar.tests=tests
6+
sonar.php.coverage.reportPaths=phpunit.coverage.xml
7+
sonar.php.tests.reportPath=phpunit.report.xml
8+
9+
sonar.language=php
10+
sonar.sourceEncoding=UTF-8
11+
12+
sonar.host.url=https://sonarcloud.io

0 commit comments

Comments
 (0)