-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update for codecov to work after circleci switch (#22)
- Loading branch information
1 parent
baef749
commit c2370e2
Showing
1 changed file
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
version: 2 | ||
version: 2.1 | ||
orbs: | ||
codecov: codecov/[email protected] | ||
jobs: | ||
build: | ||
working_directory: /app | ||
|
@@ -10,6 +12,11 @@ jobs: | |
- run: | ||
name: Install system packages | ||
command: apt-get update && apt-get -y install git unzip | ||
- run: | ||
name: Install xdebug | ||
command: | | ||
pecl install xdebug | ||
docker-php-ext-enable xdebug | ||
- checkout | ||
- run: | ||
name: Install Composer | ||
|
@@ -28,4 +35,8 @@ jobs: | |
command: php composer.phar install | ||
- run: | ||
name: Run Unit tests | ||
command: vendor/bin/phpunit | ||
command: php -d xdebug.mode=coverage vendor/bin/phpunit --coverage-clover /tmp/coverage.xml | ||
- store_test_results: | ||
path: /tmp | ||
- codecov/upload: | ||
file: /tmp/coverage.xml |