Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace coveralls with codecov #118

Merged
merged 3 commits into from
Aug 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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