Skip to content
Snippets Groups Projects
Commit 98d9624b authored by Adrien Crovato's avatar Adrien Crovato
Browse files

ci in 1 stage... to be fixed

parent e2282716
No related branches found
No related tags found
1 merge request!1Version 0.1.0 (setup)
Pipeline #2352 passed
......@@ -14,12 +14,12 @@ variables:
GIT_CLONE_PATH: /builds/$CI_PROJECT_PATH/FPM_BUILD/fpm # cannot work in /builds/$CI_PROJECT_PATH
stages:
- bld_tst
- fmt_dox
- build
# - fmt_dox
build_test:
build:
<<: *global_tag_def
stage: bld_tst
stage: build
script:
- printenv | sort
- cd ..
......@@ -34,48 +34,57 @@ build_test:
- cd build
- cmake -Wno-dev -C ../CMake/disable-trilinos.cmake ..
- make -j $(nproc)
# build and test fpm
# check code format
- clang-format --version # we use clang-format-10 exclusively
- cd ../../fpm
- ${CI_PROJECT_DIR}/../waves/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
# build fpm
- mkdir build
- cd build
- cmake -Wno-dev .. # -DCMAKE_PREFIX_PATH=${CI_PROJECT_DIR}/../waves (handled by default)
- make -j $(nproc)
# build documentation
- make dox
# test
- ctest -j $(nproc) --output-on-failure #--verbose
- mv ${CI_PROJECT_DIR}/../waves/scripts/format_code.py . # ulgy way to keep a script we need later...
#timeout: 10 hours # will be available in 12.3
artifacts:
paths:
- build/
expire_in: 1 hour
format:
<<: *global_tag_def
stage: fmt_dox
script:
- clang-format --version # we use clang-format-10 exclusively
- ./build/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
when: on_failure
dependencies:
- build_test
allow_failure: true
doxygen:
<<: *global_tag_def
stage: fmt_dox
script:
- cd build
- make dox
artifacts:
paths:
- build/doxygen/
expire_in: 1 day
dependencies:
- build_test
#format:
# <<: *global_tag_def
# stage: fmt_dox
# script:
# - clang-format --version # we use clang-format-10 exclusively
# - ./build/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
# when: on_failure
# dependencies:
# - build_test
# allow_failure: true
#
#
#doxygen:
# <<: *global_tag_def
# stage: fmt_dox
# script:
# - cd build
# - make dox
# artifacts:
# paths:
# - build/doxygen/
# expire_in: 1 day
# dependencies:
# - build_test
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