Skip to content

Commit

Permalink
Replace coveralls with codecov (#118)
Browse files Browse the repository at this point in the history
* Replace coveralls with codecov

Signed-off-by: André Silva <[email protected]>

* Add `codecov.yml`

Signed-off-by: André Silva <[email protected]>

* Remove travis files

Signed-off-by: André Silva <[email protected]>
  • Loading branch information
andre15silva authored Aug 23, 2021
1 parent ee045f4 commit 68cd270
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 49 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/mvn-build-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,5 @@ jobs:
run: ./src/compile-and-clean-test-projects.sh
- name: Test and Coverage with Maven
run: mvn test jacoco:report
- name: "Report: Coverage via coveralls.io"
run: |
export CI_BRANCH=${BRANCH_NAME_OR_REF#refs/heads/}
export CI_PULL_REQUEST=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
mvn coveralls:report --no-transfer-progress -DrepoToken=$COVERALLS_SECRET
env:
CI_NAME: github
BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }}
CI_BUILD_NUMBER: ${{ github.run_id }}
CI_BUILD_URL: https://github.com/${{ github.repository }}/commit/${{ github.event.after }}/checks
COVERALLS_SECRET: ${{ secrets.GITHUB_TOKEN }}
- name: Report coverage to Codecov
uses: codecov/[email protected]
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ hs_err_pid*
!/src/main/resources/runner-classes/fr/inria/stamp/runner/test/Loader.class
!/src/main/resources/runner-classes/fr/inria/stamp/runner/coverage/JacocoRunner.class
!/src/main/resources/runner-classes/fr/inria/stamp/runner/test/Failure.class

# Jacoco exec files
test-runner.exec
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .travis/travis-deploy.sh

This file was deleted.

9 changes: 0 additions & 9 deletions .travis/travis-settings.xml

This file was deleted.

8 changes: 8 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
codecov:
require_ci_to_pass: no

comment: false

coverage:
precision: 2
round: down

0 comments on commit 68cd270

Please sign in to comment.