From fb93822b1411b50b746d9be12ef11f37e51a4ed8 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 13 Sep 2019 08:29:42 -0400 Subject: Add jenkinsfile format checker --- Jenkinsfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 { -- cgit v1.3