Skip to content

Commit

Permalink
Add jenkinsfile (#34)
Browse files Browse the repository at this point in the history
Signed-off-by: Hunter L. Allen <hunterlallen@protonmail.com>
  • Loading branch information
allenh1 authored Sep 21, 2019
1 parent 2e18186 commit 6809121
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
node {
def app

stage('Clone') {
checkout scm
sh 'git clean -xdf'
}

stage('Test Compile') {
sh 'cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo && cmake --build build'
}

stage('Static Analyzer') {
echo 'Analyzing with PVS Studio...'
sh 'rm -rf build && mkdir -p build && cd build && cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo && pvs-studio-analyzer trace -- make -j65'
sh '~/run-pvs.bash build'
sh 'python3 ~/pvs-log-to-md.py build/pvs.tasks > index.html'
sh '~/check-pvs-build.bash build/pvs.tasks'
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: '', reportFiles: 'index.html', reportName: 'PVS-Studio Report', reportTitles: ''])
}
}

0 comments on commit 6809121

Please sign in to comment.