Skip to content

Commit

Permalink
say no to report aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen committed Jan 10, 2020
1 parent 056f68f commit aba9663
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 69 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ jobs:

- name: Report coverage
shell: bash
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
if [ "${{ secrets.CODACY_PROJECT_TOKEN }}" != "" ] && [ "${{ secrets.CODECOV_TOKEN }}" != "" ]; then
report=$(find . -type f -wholename '.*/jacoco-aggregate/jacoco.xml')
if [ ! -f "$report" ]; then
echo "Coverage report not found"
exit 1
fi
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Java -r $report -t ${{ secrets.CODACY_PROJECT_TOKEN }}
bash <(curl -s https://codecov.io/bash) -f $report -t ${{ secrets.CODECOV_TOKEN }}
if [ "$CODACY_PROJECT_TOKEN" != "" ] && [ "$CODECOV_TOKEN" != "" ]; then
bash <(curl -s https://codecov.io/bash) -f "*jacoco.xml"
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Java -r plugin/target/site/jacoco/jacoco.xml --partial
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Java -r test-harness/target/site/jacoco/jacoco.xml --partial
bash <(curl -Ls https://coverage.codacy.com/get.sh) final
else
echo "No secrets provided for coverage report"
fi
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<module>plugin</module>
<module>integrations</module>
<module>test-harness</module>
<module>report</module>
</modules>

<properties>
Expand Down
60 changes: 0 additions & 60 deletions report/pom.xml

This file was deleted.

0 comments on commit aba9663

Please sign in to comment.