From c7382493cbbd43c50cb9e9aea768b2ea68f73c68 Mon Sep 17 00:00:00 2001 From: Gjero Krsteski Date: Thu, 5 Jan 2017 15:45:48 +0100 Subject: [PATCH] use codeception from composer --- test.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test.sh b/test.sh index c2aa8f2..ee3c969 100644 --- a/test.sh +++ b/test.sh @@ -1,9 +1,8 @@ #!/usr/bin/env bash # run tests -docker exec -ti reactphp-pimf-api curl -LsS http://codeception.com/codecept.phar -o /usr/local/bin/codecept -docker exec -ti reactphp-pimf-api chmod a+x /usr/local/bin/codecept -tests_response=$(docker exec -ti reactphp-pimf-api codecept run --colors) +docker exec -ti reactphp-pimf-api php composer.phar require "codeception/codeception" +tests_response=$(docker exec -ti reactphp-pimf-api vendor/codeception/codeception/codecept run --colors) test_ok=$(echo "$tests_response" | grep "OK" | wc -l) echo "$tests_response"