-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from FriendsOfREDAXO/textile-via-composer
Textile via composer
- Loading branch information
Showing
16 changed files
with
502 additions
and
426 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,14 @@ | ||
.idea/**/workspace.xml | ||
.idea/**/tasks.xml | ||
.idea/**/usage.statistics.xml | ||
.idea/**/dictionaries | ||
.idea/**/shelf | ||
*.iml | ||
modules.xml | ||
.idea/misc.xml | ||
.idea/vcs.xml | ||
.idea/encodings.xml | ||
*.ipr | ||
.DS_Store | ||
vendor/composer/* | ||
vendor/autoload.php |
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,5 @@ | ||
{ | ||
"require": { | ||
"netcarver/textile": "^3.7.6" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
File renamed without changes.
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,82 @@ | ||
.PHONY: all clean help lint lint-fix test test-static test-unit bump bump-dev process-reports | ||
|
||
IMAGE?=php_8_1 | ||
PHP = docker-compose run --rm $(IMAGE) | ||
|
||
all: test | ||
|
||
vendor: | ||
$(PHP) composer install | ||
|
||
clean: | ||
$(PHP) rm -rf vendor composer.lock | ||
|
||
lint: vendor | ||
$(PHP) composer lint | ||
|
||
lint-fix: vendor | ||
$(PHP) composer lint-fix | ||
|
||
test: vendor | ||
$(PHP) composer test | ||
|
||
test-static: vendor | ||
$(PHP) composer test:static | ||
|
||
test-unit: vendor | ||
$(PHP) composer test:unit | ||
|
||
bump: vendor | ||
$(PHP) composer bump | ||
|
||
bump-dev: vendor | ||
$(PHP) composer bump-dev | ||
|
||
process-reports: | ||
$(PHP) bash -c "test -e build/logs/clover.xml && sed -i 's/\/app\///' build/logs/clover.xml" | ||
|
||
help: | ||
@echo "Manage project" | ||
@echo "" | ||
@echo "Usage:" | ||
@echo " $$ make [command] [" | ||
@echo " IMAGE=<image>" | ||
@echo " ]" | ||
@echo "" | ||
@echo "Commands:" | ||
@echo "" | ||
@echo " $$ make lint" | ||
@echo " Lint code style" | ||
@echo "" | ||
@echo " $$ make lint-fix" | ||
@echo " Lint and fix code style" | ||
@echo "" | ||
@echo " $$ make test" | ||
@echo " Run linter, static and unit tests" | ||
@echo "" | ||
@echo " $$ make test-unit" | ||
@echo " Run unit tests" | ||
@echo "" | ||
@echo " $$ make test-static" | ||
@echo " Run static tests" | ||
@echo "" | ||
@echo " $$ make bump" | ||
@echo " Bump version" | ||
@echo "" | ||
@echo " $$ make bump-dev" | ||
@echo " Bump development version" | ||
@echo "" | ||
@echo " $$ make clean" | ||
@echo " Delete installed dependencies" | ||
@echo "" | ||
@echo " $$ make vendor" | ||
@echo " Install dependencies" | ||
@echo "" | ||
@echo " $$ make process-reports" | ||
@echo " Formats test reports to use relative local file paths" | ||
@echo "" | ||
@echo "Environment variables:" | ||
@echo "" | ||
@echo " IMAGE" | ||
@echo " docker-compose service name that is used to run the command" | ||
@echo "" |
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
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,14 @@ | ||
version: '3' | ||
|
||
services: | ||
php_8_1: | ||
build: ./docker/image/php/8_1 | ||
volumes: | ||
- .:/app | ||
- ${COMPOSER_HOME:-$HOME/.composer}:/tmp | ||
networks: | ||
- app | ||
|
||
networks: | ||
app: | ||
driver: bridge |
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,16 @@ | ||
FROM php:8.1-cli | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
bash \ | ||
git \ | ||
libz-dev \ | ||
zip \ | ||
wget | ||
|
||
RUN pecl install xdebug | ||
|
||
RUN docker-php-ext-enable xdebug | ||
|
||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
||
WORKDIR /app |
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,6 @@ | ||
parameters: | ||
ignoreErrors: | ||
- '#Parameter \#2 \$callback of function preg_replace_callback#' | ||
- "#Cannot access offset '[a-zA-Z0-9\\_]+' on non-empty-array#" | ||
- '#Cannot access offset [0-9]+ on array#' | ||
- "#Offset '[a-zA-Z0-9\\_]+' does not exist on array#" |
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,8 @@ | ||
sonar.organization=textile | ||
sonar.projectKey=textile_php-textile | ||
sonar.projectName=PHP-Textile | ||
|
||
sonar.sources=src | ||
sonar.tests=test | ||
sonar.sourceEncoding=UTF-8 | ||
sonar.php.coverage.reportPaths=build/logs/clover.xml |
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
Oops, something went wrong.