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: ...@@ -14,12 +14,12 @@ variables:
GIT_CLONE_PATH: /builds/$CI_PROJECT_PATH/FPM_BUILD/fpm # cannot work in /builds/$CI_PROJECT_PATH GIT_CLONE_PATH: /builds/$CI_PROJECT_PATH/FPM_BUILD/fpm # cannot work in /builds/$CI_PROJECT_PATH
stages: stages:
- bld_tst - build
- fmt_dox # - fmt_dox
build_test: build:
<<: *global_tag_def <<: *global_tag_def
stage: bld_tst stage: build
script: script:
- printenv | sort - printenv | sort
- cd .. - cd ..
...@@ -34,48 +34,57 @@ build_test: ...@@ -34,48 +34,57 @@ build_test:
- cd build - cd build
- cmake -Wno-dev -C ../CMake/disable-trilinos.cmake .. - cmake -Wno-dev -C ../CMake/disable-trilinos.cmake ..
- make -j $(nproc) - make -j $(nproc)
# build and test fpm # check code format
- clang-format --version # we use clang-format-10 exclusively
- cd ../../fpm - 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 - mkdir build
- cd build - cd build
- cmake -Wno-dev .. # -DCMAKE_PREFIX_PATH=${CI_PROJECT_DIR}/../waves (handled by default) - cmake -Wno-dev .. # -DCMAKE_PREFIX_PATH=${CI_PROJECT_DIR}/../waves (handled by default)
- make -j $(nproc) - make -j $(nproc)
# build documentation
- make dox
# test
- ctest -j $(nproc) --output-on-failure #--verbose - 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... - 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 #timeout: 10 hours # will be available in 12.3
artifacts: artifacts:
paths: paths:
- build/ - 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/ - patches/
expire_in: 1 day expire_in: 1 day
when: on_failure
dependencies:
- build_test
allow_failure: true
#format:
doxygen: # <<: *global_tag_def
<<: *global_tag_def # stage: fmt_dox
stage: fmt_dox # script:
script: # - clang-format --version # we use clang-format-10 exclusively
- cd build # - ./build/format_code.py
- make dox # - mkdir -p patches
artifacts: # - 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
paths: # artifacts:
- build/doxygen/ # paths:
expire_in: 1 day # - patches/
dependencies: # expire_in: 1 day
- build_test # 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