-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Hernan Ponce de Leon <[email protected]>
- Loading branch information
1 parent
7edca6c
commit 305d826
Showing
1 changed file
with
0 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,69 +42,6 @@ jobs: | |
- name: Set DAT3M_OUTPUT | ||
run: echo "DAT3M_OUTPUT=$(echo $DAT3M_HOME)/output" >> $GITHUB_ENV | ||
|
||
litmus-tests: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
- name: Litmus tests | ||
run: mvn test -Dtest="com/dat3m/dartagnan/litmus/*" | ||
|
||
llvm-tests: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
- name: LLVM tests | ||
run: mvn test -Dtest="com/dat3m/dartagnan/llvm/*" | ||
|
||
other-tests: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
- name: Other tests | ||
run: mvn test -Dtest="com/dat3m/dartagnan/others/*" | ||
|
||
spirv-tests: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
- name: SPIRV tests | ||
run: mvn test -Dtest="com/dat3m/dartagnan/spirv/*" | ||
|
||
|
||
coverage: | ||
needs: [litmus-tests, llvm-tests, other-tests, spirv-tests] | ||
runs-on: ubuntu-latest | ||
|
||
- name: Log coverage percentage | ||
run: | | ||
echo "coverage = ${{ steps.jacoco.outputs.coverage }}" | ||
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}" | ||
- name: Commit the badges (if changed) | ||
if: ${{ github.event_name != 'pull_request' }} | ||
run: | | ||
cd badges | ||
if [[ `git status --porcelain *.svg` ]]; then | ||
git config --global user.name 'Hernan Ponce de Leon' | ||
git config --global user.email '[email protected]' | ||
git add *.svg | ||
git commit -m "Autogenerated JaCoCo coverage badge" *.svg | ||
git push | ||
fi | ||
badge: | ||
needs: [litmus-tests, llvm-tests, other-tests, spirv-tests] | ||
runs-on: ubuntu-latest | ||
|
||
- name: Generate JaCoCo Badge | ||
id: jacoco | ||
uses: cicirello/jacoco-badge-generator@v2 | ||
with: | ||
badges-directory: badges | ||
coverage-badge-filename: coverage.svg | ||
generate-branches-badge: true | ||
branches-badge-filename: branches.svg | ||
jacoco-csv-file: dartagnan/target/site/jacoco/jacoco.csv | ||
|
||
docker: | ||
runs-on: ubuntu-latest | ||
|
||
|