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.
Merge remote-tracking branch 'origin/master' into unstable
- Loading branch information
Showing
9 changed files
with
169 additions
and
3 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,25 @@ | ||
FROM jenkins/jenkins:lts | ||
USER root | ||
|
||
RUN apt update -y \ | ||
&& apt install -y binutils-dev libssl-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev cmake build-essential python3 wget | ||
|
||
|
||
RUN mkdir kcov_build \ | ||
&& cd kcov_build \ | ||
&& wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz \ | ||
&& tar -xzf master.tar.gz \ | ||
&& cd kcov-master \ | ||
&& cmake . \ | ||
&& make \ | ||
&& make install \ | ||
&& cd / \ | ||
&& rm -rf kcov_build | ||
|
||
RUN wget https://github.com/koalaman/shellcheck/releases/download/v0.10.0/shellcheck-v0.10.0.linux.x86_64.tar.xz \ | ||
&& tar -xf shellcheck-v0.10.0.linux.x86_64.tar.xz \ | ||
&& cp shellcheck-v0.10.0/shellcheck /usr/bin/ \ | ||
&& rm -rf shellcheck-v0.10.0 | ||
|
||
RUN apt install -y shunit2 bc sqlite3 bsdmainutils libxml-xpath-perl | ||
#USER kworkflow |
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,27 @@ | ||
pipeline { | ||
agent { dockerfile true } | ||
stages { | ||
|
||
stage('Build'){ | ||
steps{ | ||
sh ''' | ||
apt update -y | ||
apt install -y shunit2 bc sqlite3 bsdmainutils libxml-xpath-perl wget rsync | ||
./setup.sh -i --force | ||
./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 | ||
} | ||
} | ||
|
||
} | ||
} |
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,18 @@ | ||
pipeline { | ||
agent { | ||
dockerfile true | ||
} | ||
stages { | ||
|
||
stage('Build'){ | ||
steps{ | ||
sh ''' | ||
apt update -y | ||
apt install -y shfmt | ||
shfmt -i=2 -ln=bash -fn -ci -sr -d . | ||
''' | ||
} | ||
} | ||
|
||
} | ||
} |
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 { dockerfile true } | ||
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 | ||
} | ||
} | ||
|
||
} | ||
} |
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 { dockerfile true } | ||
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 | ||
} | ||
} | ||
|
||
} | ||
} |
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 { dockerfile true } | ||
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 | ||
} | ||
} | ||
|
||
} | ||
} |
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,17 @@ | ||
pipeline { | ||
agent { dockerfile true } | ||
stages { | ||
|
||
stage('Build'){ | ||
steps{ | ||
sh ''' | ||
apt update -y | ||
apt install -y shunit2 bc sqlite3 bsdmainutils libxml-xpath-perl wget rsync | ||
./setup.sh -i --force | ||
./run_tests.sh | ||
''' | ||
} | ||
} | ||
|
||
} | ||
} |
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,3 +1,3 @@ | ||
alpha | ||
beta | ||
Branch: master | ||
Commit: 8870b67242c | ||
Commit: 1d933ba |