Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybrad committed May 23, 2019
1 parent fe6ddc0 commit a7e1aff
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
27 changes: 19 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,17 @@ before_script:

script:
- |
vendor/bin/codecept run unit;
#script:
# - |
# # if [[ $TASK_TESTS_COVERAGE != 1 ]]; then
# php -d display_errors=on -d max_execution_time=-1 -d memory_limit=2048M -d error_reporting=-1 vendor/codeception/codeception/codecept run tests/unit/helpers/ArrayHelperTest.php:testToArray;
# # else
# # vendor/bin/codecept run unit --coverage --coverage-xml;
# # fi
if [[ $TASK_TESTS_COVERAGE != 1 ]]; then
vendor/bin/codecept run unit
else
vendor/bin/codecept run unit --coverage --coverage-xml;
fi
after_script:
- |
if [ $TASK_TESTS_COVERAGE == 1 ]; then
travis_retry php vendor/bin/php-coveralls
fi
#after_script:
# - |
Expand All @@ -95,6 +98,14 @@ script:
# php ocular.phar code-coverage:upload --format=php-clover coverage.clover
# fi

#script:
# - |
# # if [[ $TASK_TESTS_COVERAGE != 1 ]]; then
# php -d display_errors=on -d max_execution_time=-1 -d memory_limit=2048M -d error_reporting=-1 vendor/codeception/codeception/codecept run tests/unit/helpers/ArrayHelperTest.php:testToArray;
# # else
# # vendor/bin/codecept run unit --coverage --coverage-xml;
# # fi

#jobs:
# include:
# - stage: Static Code Analysis
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"codeception/verify": "^1.0",
"vlucas/phpdotenv": "^3.0",
"league/factory-muffin": "^3.0",
"fzaninotto/faker": "^1.8"
"fzaninotto/faker": "^1.8",
"php-coveralls/php-coveralls": "^2.1"
},
"provide": {
"bower-asset/bootstrap": "3.3.* | 3.2.* | 3.1.*",
Expand Down

0 comments on commit a7e1aff

Please sign in to comment.