Skip to content

Commit

Permalink
FEAT: Coverage reports
Browse files Browse the repository at this point in the history
- fixed commands for coverage generation; and
- disabled travis for all but master and integration.
  • Loading branch information
carlwilson committed Apr 6, 2022
1 parent 62512e8 commit 9e6c94c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
- name: script
run: mvn --batch-mode --update-snapshots install -DjacocoAgg
- name: Integration Tests
run: ./bbt-jhove
shell: bash
- name: Build with Maven
run: mvn --batch-mode verify -DjacocoAgg
- name: Upload coverage report
uses: actions/upload-artifact@master
with:
name: coverage-report
path: core/target/site/jacoco/
path: jhove-apps/target/site/jacoco-aggregate/
coverage:
name: Quality Assurance
runs-on: ubuntu-20.04
Expand All @@ -45,13 +47,13 @@ jobs:
- name: Codecov coverage reporting
uses: codecov/codecov-action@v2
with:
files: core/target/site/jacoco/jacoco.xml
files: jhove-apps/target/site/jacoco-aggregate/jacoco.xml
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
- name: Codacy coverage reporting
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: core/target/site/jacoco/jacoco.xml
coverage-reports: jhove-apps/target/site/jacoco-aggregate/jacoco.xml
- name: Codacy analysis reporting
uses: codacy/[email protected]
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ jdk:
- oraclejdk8

branches:
except:
- "/^v|d\\d+\\.\\d+\\.\\d+$/"
- "/^jenkins-jhove-v|d\\d+\\.\\d+\\.\\d+$/"
only:
- integration
- master
# except:
# - "/^v|d\\d+\\.\\d+\\.\\d+$/"
# - "/^jenkins-jhove-v|d\\d+\\.\\d+\\.\\d+$/"

notifications:
slack:
Expand Down

0 comments on commit 9e6c94c

Please sign in to comment.