Skip to content

Commit

Permalink
chore(ci): use new codecov uploader for reporting code coverage (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar authored Feb 22, 2022
1 parent b29da5e commit d5abfd8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,26 @@ commands:
name: Install dependencies
command: |
composer install -n --prefer-dist
- run:
name: Install xdebug
command: |
sudo pecl install xdebug
- run:
name: Run tests
command: |
export XDEBUG_MODE=coverage
vendor/bin/phpunit tests --coverage-clover=coverage.xml
- run:
name: "Collecting coverage reports"
command: bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
name: Collecting coverage reports
command: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
curl -s https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
chmod +x ./codecov
./codecov
- save_cache:
name: Saving Cache
key: composer-v3-{{ checksum "composer.json" }}-<< parameters.php-image >>
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 2.7.0 [unreleased]

### CI
1. [#118](https://github.com/influxdata/influxdb-client-php/pull/118): Use new Codecov uploader for reporting code coverage

## 2.6.0 [2022-02-18]

### Features
Expand Down

0 comments on commit d5abfd8

Please sign in to comment.