Skip to content

Commit

Permalink
Integration test prototype
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 Jun 20, 2024
1 parent fe9777e commit 5d87c3d
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions jenkinsfiles/integration_tests
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
pipeline {
agent { dockerfile true }
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
apt install -y shunit2 bc sqlite3 bsdmainutils libxml-xpath-perl podman
./run_tests.sh --integration
'''
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
}
}

Expand Down

0 comments on commit 5d87c3d

Please sign in to comment.