Skip to content

Commit 5263bbb

Browse files
mfngrogy
authored andcommitted
Provide one true way to run the test suite
1 parent 61322f2 commit 5263bbb

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ install:
2525
- composer install --no-interaction --prefer-source
2626

2727
script:
28-
- ./vendor/bin/tester -p php tests
28+
- composer test
2929
- ./parallel-lint --exclude vendor --exclude tests/examples --no-colors .
3030
- ./parallel-lint --exclude vendor --exclude tests/examples .
3131
- if [[ "$SNIFF" == "1" ]]; then ./vendor/bin/phpcs;fi

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ install:
2525
- php composer.phar install --prefer-source --no-interaction
2626

2727
test_script:
28-
- vendor\bin\tester tests -p php
28+
- php composer.phar test
2929
- php parallel-lint --exclude vendor --exclude tests\examples --no-colors .
3030
- php parallel-lint --exclude vendor --exclude tests\examples .

composer.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,11 @@
3535
},
3636
"bin": [
3737
"parallel-lint"
38-
]
38+
],
39+
"scripts": {
40+
"test": "@php vendor/bin/tester -p php tests"
41+
},
42+
"scripts-descriptions": {
43+
"test": "Run all tests!"
44+
}
3945
}

0 commit comments

Comments
 (0)