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

Update ci

parent 403b0035
No related branches found
No related tags found
1 merge request!1Version 0.1.0 (setup)
Pipeline #2042 failed
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
...@@ -14,16 +14,15 @@ variables: ...@@ -14,16 +14,15 @@ 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:
- .pre - build # only 1 stage to avoid exporting artifacts in parent dir (not permitted)
- build
- test
waves: build_test:
<<: *global_tag_def <<: *global_tag_def
stage: .pre stage: build
script: script:
- printenv | sort - printenv | sort
- cd .. - cd ..
# get waves and build
- rm -rf waves - rm -rf waves
- wget -q https://gitlab.uliege.be/am-dept/waves/-/archive/master/waves-master.tar.bz2 - wget -q https://gitlab.uliege.be/am-dept/waves/-/archive/master/waves-master.tar.bz2
- tar xf waves-master.tar.bz2 - tar xf waves-master.tar.bz2
...@@ -34,10 +33,17 @@ waves: ...@@ -34,10 +33,17 @@ waves:
- 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)
- ls ${CI_PROJECT_DIR}/.. # build fpm
- cd ../../fpm
- mkdir build
- cd build
- cmake -DCMAKE_PREFIX_PATH=${CI_PROJECT_DIR}/../waves -Wno-dev ..
- make -j $(nproc)
- ctest -j $(nproc) --output-on-failure #--verbose
#timeout: 10 hours # will be available in 12.3
artifacts: artifacts:
paths: paths:
- ../waves/ - build/
expire_in: 1 hour expire_in: 1 hour
format: format:
...@@ -55,28 +61,13 @@ format: ...@@ -55,28 +61,13 @@ format:
expire_in: 1 day expire_in: 1 day
when: on_failure when: on_failure
dependencies: dependencies:
- waves - build_test
allow_failure: true allow_failure: true
build:
<<: *global_tag_def
stage: build
script:
- ls ${CI_PROJECT_DIR}/..
- mkdir build
- cd build
- cmake -DCMAKE_PREFIX_PATH=${CI_PROJECT_DIR}/../waves -Wno-dev ..
- make -j $(nproc)
artifacts:
paths:
- build/
expire_in: 1 hour
dependencies:
- waves
doxygen: doxygen:
<<: *global_tag_def <<: *global_tag_def
stage: test stage: build
script: script:
- cd build - cd build
- make dox - make dox
...@@ -85,15 +76,5 @@ doxygen: ...@@ -85,15 +76,5 @@ doxygen:
- build/doxygen/ - build/doxygen/
expire_in: 1 day expire_in: 1 day
dependencies: dependencies:
- build - build_test
ctest:
<<: *global_tag_def
stage: test
script:
- ls ${CI_PROJECT_DIR}/..
- cd build
- ctest -j $(nproc) --output-on-failure #--verbose
#timeout: 10 hours # will be available in 12.3
dependencies:
- build
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