Skip to content
Snippets Groups Projects
Verified Commit 5bce0f05 authored by Paul Dechamps's avatar Paul Dechamps :speech_balloon:
Browse files

(fix) Modified format to exclude modules + changed validation cases output status in pipeline

parent b12fa6b6
No related branches found
No related tags found
1 merge request!1BLASTER v1.0
Pipeline #49024 failed
......@@ -78,11 +78,14 @@ cvalidation:
stage: validation
script:
- set +e
- python3 run.py blast/validation/raeValidation.py -v
- python3 run.py blast/validation/oneraValidation.py -v
- python3 run.py blast/validation/lannValidation.py -v
- python3 run.py blast/validation/raeValidation.py -v; RAE_STATUS=$?
- python3 run.py blast/validation/oneraValidation.py -v; ONERA_STATUS=$?
- python3 run.py blast/validation/lannValidation.py -v; LANN_STATUS=$?
- set -e
- if [ $? -ne 0 ]; then exit 1; fi
- echo "RAE Validation Status: $RAE_STATUS"
- echo "ONERA Validation Status: $ONERA_STATUS"
- echo "LANN Validation Status: $LANN_STATUS"
- if [ $RAE_STATUS -ne 0 ] || [ $ONERA_STATUS -ne 0 ] || [ $LANN_STATUS -ne 0 ]; then exit 1; fi
dependencies:
- build
when: manual
......@@ -21,6 +21,8 @@ def all_files(root,
patterns = patterns.split(';')
skips = skips.split(';')
for path, subdirs, files in os.walk(root):
if 'modules' in path.split(os.sep):
continue
if yield_folders:
files.extend(subdirs)
files.sort()
......@@ -44,12 +46,14 @@ def main():
# loop over all files and format them
encs = {}
for f in all_files(os.getcwd(), patterns='*.cpp;*.c;*.h;*.hpp'):
print('Checking file', 'blaster'+f.split('blaster', 1)[-1], end='...')
# print(f)
cmd = ['clang-format-10', "-style=file", "-i", f]
cmd = ['clang-format-11', "-style=file", "-i", f]
retcode = subprocess.call(cmd)
if retcode != 0:
print(f'ERROR: retcode = {retcode}')
break
print('done.')
if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment