summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Jenkinsfile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 8a3ad19..5863a5a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -6,7 +6,17 @@ pipeline {
options {
disableConcurrentBuilds()
}
-
+ stages {
+ stage('formatting-check') {
+ steps {
+ sh '''
+ git remote rm upstream
+ git remote add upstream https://github.com/purdue-aalp/gpgpu-sim_distribution
+ git fetch upstream
+ git diff --name-only upstream/dev | grep -E "*.cc|*.h|*.cpp|*.hpp" | xargs ./run-clang-format.py --clang-format-executable /home/tgrogers-raid/a/green349/clang-format
+ '''
+ }
+ }
stages {
stage('simulator-build') {
steps {