Author: Andreas Möller (localheinz)
Committer: GitHub (web-flow)
Pusher: cmb69
Date: 2022-07-11T13:48:55+02:00

Commit: 
https://github.com/php/web-php/commit/dc0eb0f29fb20e07d58cb588b4bb39c885ef2173
Raw diff: 
https://github.com/php/web-php/commit/dc0eb0f29fb20e07d58cb588b4bb39c885ef2173.diff

Enhancement: Add Makefile

Closes GH-621.

Changed paths:
  A  Makefile
  M  .editorconfig
  M  .github/CONTRIBUTING.md


Diff:

diff --git a/.editorconfig b/.editorconfig
index 0e4a3ade3..cc04c0017 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -8,3 +8,9 @@ charset = utf-8
 indent_size = 2
 indent_style = space
 trim_trailing_whitespace = true
+
+[Makefile]
+charset = utf-8
+indent_size = 4
+indent_style = tab
+trim_trailing_whitespace = true
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 4c3a7d149..3e7ff774a 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -63,7 +63,7 @@ about what you're working on, you can contact us via the
 - Run
 
   ```
-  php tests/run-tests.php -q --show-diff
+  make tests
   ```
 
   to check your change doesn't break other features.
@@ -118,7 +118,7 @@ Having said that, here are the organizational rules:
 5. Test your changes before committing them. We mean it. Really. To do so use
 
    ```
-   php tests/run-tests.php -q --show-diff
+   make tests
    ```
 
 6. Use reasonable commit messages.
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..58b10b415
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,7 @@
+.PHONY: help
+help: ## Displays this list of targets with descriptions
+       @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 
'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
+
+.PHONY: tests
+tests: ## Runs tests
+       php tests/run-tests.php -j3 -q

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to