From 14565cb50d8a3594f25bf832a279fcb7fb6ee2c6 Mon Sep 17 00:00:00 2001 From: Liam Wiltshire Date: Mon, 21 Oct 2019 20:14:54 +0100 Subject: [PATCH] Tidy up CI config --- .circleci/config.yml | 4 +--- composer.json | 7 +++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 50c240a..56cd758 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,7 +31,5 @@ jobs: - ./vendor # run tests with phpunit - - run: ./vendor/bin/phpunit - - run: ./vendor/bin/phpcs --standard=PSR2 src/ - - run: php tests/CoverageCheck.php tests/clover.xml 95 + - run: composer test diff --git a/composer.json b/composer.json index 15bf1e3..ea2f688 100644 --- a/composer.json +++ b/composer.json @@ -29,8 +29,11 @@ } }, "scripts": { - "test": "phpunit", - "cs": "php-cs-fixer fix src/ --level=psr2" + "test": [ + "./vendor/bin/phpunit", + "./vendor/bin/phpcs --standard=PSR2 src/", + "php tests/CoverageCheck.php tests/clover.xml 95" + ] }, "minimum-stability": "stable" }