-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): Expose linter results in the junit output
This change will force linting on CI and expose any errors. It also changes to using `tap-xunit` with a flattened output when generating the junit report file. This solves a bug with tests missing when using tap-mocha-reporter. Semver: patch
- Loading branch information
1 parent
40c2508
commit c5123aa
Showing
5 changed files
with
20 additions
and
10 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
node_modules | ||
coverage | ||
.nyc_output | ||
.tap-output |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ coverage | |
.npm | ||
.tap-output | ||
Jenkinsfile | ||
tools |
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
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
export PATH="./node_modules/.bin:$PATH" | ||
|
||
mkdir -p coverage | ||
|
||
tap && npm run lint -- -f tap -o coverage/.lint-output | ||
|
||
code=$? | ||
|
||
cat coverage/.tap-output | tap-parser -t -f | tap-xunit > coverage/tap-results.xml | ||
cat coverage/.lint-output | tap-parser -t -f | tap-xunit > coverage/lint-results.xml | ||
|
||
exit $code |