summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
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']],