forked from kworkflow/kworkflow
-
Notifications
You must be signed in to change notification settings - Fork 0
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: Marcelo Mendes Spessoto Junior <[email protected]>
- Loading branch information
1 parent
af4d2e3
commit 6ed9b8e
Showing
3 changed files
with
122 additions
and
96 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
pipeline { | ||
agent any | ||
stages { | ||
|
||
stage('Build'){ | ||
steps{ | ||
sh ''' | ||
apt update -y | ||
apt install -y shunit2 bc sqlite3 bsdmainutils libxml-xpath-perl | ||
./run_tests.sh prepare | ||
rm -rf kcov_out | ||
mkdir kcov_out/ | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Kworkflow" | ||
./run_tests.sh | ||
kcov --include-path=src,kw \ | ||
--exclude-pattern=src/bash_autocomplete.sh,src/help.sh \ | ||
kcov_out/ ./run_tests.sh | ||
mv kcov_out/run_tests.sh.*/cobertura.xml $(pwd)/cobertura.xml | ||
''' | ||
cobertura autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'cobertura.xml', conditionalCoverageTargets: '70, 0, 0', failUnhealthy: false, failUnstable: false, lineCoverageTargets: '80, 0, 0', maxNumberOfBuilds: 0, methodCoverageTargets: '80, 0, 0', onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false | ||
} | ||
} | ||
|
||
} | ||
} |
File renamed without changes.
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