From 58b80895172edcac3a042fd662135bcfc77fdd35 Mon Sep 17 00:00:00 2001 From: Markus Podar Date: Sat, 4 Jul 2020 07:03:40 +0200 Subject: [PATCH] Provide one true way to run the test suite --- .travis.yml | 2 +- appveyor.yml | 2 +- composer.json | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9eafe4f..fb01fdd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ install: - composer install --no-interaction --prefer-source script: - - ./vendor/bin/tester -p php tests + - composer test - ./parallel-lint --exclude vendor --exclude tests/examples --no-colors . - ./parallel-lint --exclude vendor --exclude tests/examples . - if [[ "$SNIFF" == "1" ]]; then ./vendor/bin/phpcs;fi diff --git a/appveyor.yml b/appveyor.yml index 08bdae4..15ae250 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -25,6 +25,6 @@ install: - php composer.phar install --prefer-source --no-interaction test_script: - - vendor\bin\tester tests -p php + - php composer.phar test - php parallel-lint --exclude vendor --exclude tests\examples --no-colors . - php parallel-lint --exclude vendor --exclude tests\examples . diff --git a/composer.json b/composer.json index 0a0cb67..ae978fd 100644 --- a/composer.json +++ b/composer.json @@ -35,5 +35,11 @@ }, "bin": [ "parallel-lint" - ] + ], + "scripts": { + "test": "@php vendor/bin/tester -p php tests" + }, + "scripts-descriptions": { + "test": "Run all tests!" + } }