Skip to content

Commit

Permalink
initial Jenkinsfile
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Mendes Spessoto Junior <[email protected]>
  • Loading branch information
MarceloSpessoto committed May 13, 2024
1 parent af4d2e3 commit 6597c3b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
pipeline {
agent any
stages {

stage('Build'){
steps{
sh '''
apt update -y
apt install -y kcov shunit2 bc sqlite3 bsdmainutils libxml-xpath-perl
./run_tests.sh prepare
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
'''
cobertura autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'kcov_out/', conditionalCoverageTargets: '70, 0, 0', failUnhealthy: false, failUnstable: false, lineCoverageTargets: '80, 0, 0', maxNumberOfBuilds: 0, methodCoverageTargets: '80, 0, 0', onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false
}
}

}
}

0 comments on commit 6597c3b

Please sign in to comment.