Skip to content
This repository was archived by the owner on Feb 18, 2020. It is now read-only.

Commit 1a5fb60

Browse files
committed
Remove dependancy on make
This also brings this lib in line with all of our other libs
1 parent f39c3e3 commit 1a5fb60

File tree

3 files changed

+18
-25
lines changed

3 files changed

+18
-25
lines changed

Makefile

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ Start by installing the project dependencies by executing
4040

4141
You can run the tests by executing
4242

43-
make test
43+
composer test
4444

4545
You can run the style checks by executing
4646

47-
make cs
47+
composer cs
4848

4949
To run all CI checks, execute
5050

51-
make ci
51+
composer ci
5252

5353
You can also invoke PHPUnit directly to pass it arguments, as follows
5454

composer.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@
2323
"mediawiki/mediawiki-codesniffer": "~23.0",
2424
"phpstan/phpstan": "~0.9.2"
2525
},
26+
"scripts": {
27+
"test": [
28+
"composer validate --no-interaction",
29+
"phpunit --coverage-php /dev/null"
30+
],
31+
"cs": [
32+
"phpcs -p -s",
33+
"covers-validator"
34+
],
35+
"ci": [
36+
"@cs",
37+
"@test"
38+
],
39+
"stan": "phpstan analyse --level=1 --no-progress src/ tests/"
40+
},
2641
"autoload": {
2742
"psr-4": {
2843
"Wikibase\\TermStore\\": "src/"

0 commit comments

Comments
 (0)