summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2019-09-16 10:47:08 -0400
committerMahmoud <[email protected]>2019-09-16 10:47:08 -0400
commit0785ce7c9471bf1a0c70500eb60cb293fb5aa2fa (patch)
tree15dcaeaf1b1e0e9e3c04af74e72545854793d244 /Jenkinsfile
parent688044e9f7a9aef0a63a9610b496baafd886c556 (diff)
parentdba877b45fe11187d56904bbd169f4e0a5ad0586 (diff)
Merge branch 'dev' of https://github.com/purdue-aalp/gpgpu-sim_distribution into dev-private
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile15
1 files changed, 14 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 8a3ad19..2db645c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -6,8 +6,19 @@ pipeline {
options {
disableConcurrentBuilds()
}
-
stages {
+ stage('formatting-check') {
+ steps {
+ sh '''
+ source /home/tgrogers-raid/a/common/gpgpu-sim-setup/common/export_gcc_version.sh 5.3.0
+ git remote add upstream https://github.com/purdue-aalp/gpgpu-sim_distribution
+ git fetch upstream
+ if git diff --name-only upstream/dev | grep -E "*.cc|*.h|*.cpp|*.hpp" ; then
+ git diff --name-only upstream/dev | grep -E "*.cc|*.h|*.cpp|*.hpp" | xargs ./run-clang-format.py --clang-format-executable /home/tgrogers-raid/a/common/clang-format/6.0.1/clang-format
+ fi
+ '''
+ }
+ }
stage('simulator-build') {
steps {
parallel "4.2": {
@@ -94,6 +105,7 @@ pipeline {
}
post {
success {
+ sh 'git remote rm upstream'
emailext body:'''${SCRIPT, template="groovy-html.success.template"}''',
recipientProviders: [[$class: 'CulpritsRecipientProvider'],
[$class: 'RequesterRecipientProvider']],
@@ -102,6 +114,7 @@ pipeline {
}
failure {
+ sh 'git remote rm upstream'
emailext body: "See ${BUILD_URL}",
recipientProviders: [[$class: 'CulpritsRecipientProvider'],
[$class: 'RequesterRecipientProvider']],