From 0e7c768763d3c6a9e38835956ecc4280ba5f245c Mon Sep 17 00:00:00 2001
From: Sebastian Achilles <s.achilles@fz-juelich.de>
Date: Thu, 17 Nov 2022 10:16:40 +0100
Subject: [PATCH] CI: also run dry-run

---
 .gitlab-ci.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4b5025f81..04d7f42a6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -47,14 +47,19 @@ check_style:
     - echo "Checking $(basename $i) ..."
     - if [[ $(basename $i) == *AMBER* ]]; then
     - sg amber -c "eb --check-style --check-contrib $i" || faulty="$faulty $i"
+    - sg amber -c "eb --dry-run $i" || faulty="$faulty $i"
     - elif [[ $(basename $i) == *CPMD* ]]; then
     - sg cpmd -c "eb --check-style --check-contrib $i" || faulty="$faulty $i"
+    - sg cpmd -c "eb --dry-run $i" || faulty="$faulty $i"
     - elif [[ $(basename $i) == *NAMD* ]]; then
     - sg namd -c "eb --check-style --check-contrib $i" || faulty="$faulty $i"
+    - sg namd -c "eb --dry-run $i" || faulty="$faulty $i"
     - elif [[ $(basename $i) == *Turbomole* ]]; then
     - sg turbomol -c "eb --check-style --check-contrib $i" || faulty="$faulty $i"
+    - sg turbomol -c "eb --dry-run $i" || faulty="$faulty $i"
     - else
     - eb --check-style --check-contrib $i || faulty="$faulty $i"
+    - eb --dry-run $i || faulty="$faulty $i"
     - fi
     - done
     - if [ -n "$faulty" ]; then echo "Faulty EasyConfigs... $faulty"; exit 1; fi
@@ -83,14 +88,19 @@ full_check_style:
     - echo "Checking $(basename $i) ..."
     - if [[ $(basename $i) == *AMBER* ]]; then
     - sg amber -c "eb --check-style --check-contrib $i" || faulty="$faulty $i"
+    - sg amber -c "eb --dry-run $i" || faulty="$faulty $i"
     - elif [[ $(basename $i) == *CPMD* ]]; then
     - sg cpmd -c "eb --check-style --check-contrib $i" || faulty="$faulty $i"
+    - sg cpmd -c "eb --dry-run $i" || faulty="$faulty $i"
     - elif [[ $(basename $i) == *NAMD* ]]; then
     - sg namd -c "eb --check-style --check-contrib $i" || faulty="$faulty $i"
+    - sg namd -c "eb --dry-run $i" || faulty="$faulty $i"
     - elif [[ $(basename $i) == *Turbomole* ]]; then
     - sg turbomol -c "eb --check-style --check-contrib $i" || faulty="$faulty $i"
+    - sg turbomol -c "eb --dry-run $i" || faulty="$faulty $i"
     - else
     - eb --check-style --check-contrib $i || faulty="$faulty $i"
+    - eb --dry-run $i || faulty="$faulty $i"
     - fi
     - done
     - if [ -n "$faulty" ]; then echo "Faulty EasyConfigs... $faulty"; exit 1; fi
-- 
GitLab