Skip to content
Snippets Groups Projects
Commit 7f8e0126 authored by Boman Romain's avatar Boman Romain
Browse files

add format step in gitlab-ci

parent 9d7c4feb
No related branches found
No related tags found
1 merge request!58Improve Continuous Integration
Pipeline #1568 passed
......@@ -31,6 +31,9 @@ workspace.tar.gz
# build dir
build
# gitlab-ci / clang-format
patches
# Ansys
*.apdl
!*_lfs.apdl
......
......@@ -13,9 +13,23 @@ default:
# - warson # you can choose a set of runners here
stages:
- format
- build
- test
format:
<<: *global_tag_def
stage: format
script:
- ./scripts/format_code.py
- mkdir -p patches
- if git diff --patch --exit-code > patches/clang-format.patch; then echo "Clang format changed nothing"; else echo "Clang format found changes to make!"; false; fi
artifacts:
paths:
- patches/
expire_in: 1 day
build-no-tlnos:
<<: *global_tag_def
stage: build
......
File moved
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