From aea2a2e89c137a36f7873221825fa1126fde06b6 Mon Sep 17 00:00:00 2001 From: acrovato <a.crovato@uliege.be> Date: Tue, 6 Oct 2020 10:09:33 +0200 Subject: [PATCH] Update ci --- .gitlab-ci.yml | 51 ++++++++++++++++---------------------------------- 1 file changed, 16 insertions(+), 35 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9024b01..d59c9b3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,16 +14,15 @@ variables: GIT_CLONE_PATH: /builds/$CI_PROJECT_PATH/FPM_BUILD/fpm # cannot work in /builds/$CI_PROJECT_PATH stages: - - .pre - - build - - test + - build # only 1 stage to avoid exporting artifacts in parent dir (not permitted) -waves: +build_test: <<: *global_tag_def - stage: .pre + stage: build script: - printenv | sort - cd .. + # get waves and build - rm -rf waves - wget -q https://gitlab.uliege.be/am-dept/waves/-/archive/master/waves-master.tar.bz2 - tar xf waves-master.tar.bz2 @@ -34,10 +33,17 @@ waves: - cd build - cmake -Wno-dev -C ../CMake/disable-trilinos.cmake .. - 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: paths: - - ../waves/ + - build/ expire_in: 1 hour format: @@ -55,28 +61,13 @@ format: expire_in: 1 day when: on_failure dependencies: - - waves + - build_test 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: <<: *global_tag_def - stage: test + stage: build script: - cd build - make dox @@ -85,15 +76,5 @@ doxygen: - build/doxygen/ expire_in: 1 day 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 -- GitLab