Skip to content

Commit

Permalink
Merge pull request #2801 from ushahidi/ci-flexible-cat-logs
Browse files Browse the repository at this point in the history
feat: Allow specifying different commands to test reporter
  • Loading branch information
rjmackay committed Apr 23, 2018
2 parents a55080c + 8e0faf0 commit 0a7ee2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codeship-steps.yml
@@ -1,6 +1,6 @@
- name: "Test"
service: test
command: test_reporter
command: test_reporter composer run test --timeout 0

- type: parallel
steps:
Expand Down
2 changes: 1 addition & 1 deletion docker/test.run.sh
Expand Up @@ -13,7 +13,7 @@ php -S localhost:8000 -t httpdocs httpdocs/index.php &

test_reporter() {
local _ret=0;
composer test || _ret=$?
"$@" || _ret=$?
if [ $_ret -ne 0 ]; then
echo -e "\n\n* Test run failed, output of logs in application/logs follows:"
echo -e "-------------------- BEGIN LOG OUTPUT --------------------"
Expand Down

0 comments on commit 0a7ee2f

Please sign in to comment.