From 5315d2ff0e4f0dbd51b5f6b97e2236a8dc8e8841 Mon Sep 17 00:00:00 2001 From: Debolskiy Andrey <and.debol@gmail.com> Date: Fri, 2 Aug 2024 16:13:14 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..228ce70 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,29 @@ +image: anddebol/pbl-tests:latest +stages: # List of stages for jobs, and their order of execution + - build + - test + +build-job: # This job runs in the build stage, which runs first. + stage: build + script: + - echo "Compiling the code..." + - mkdir build && cd build + - >- + cmake -DCMAKE_C_COMPLER=gcc -DCMAKE_CXX_COMPILER=g++ + -DCMAKE_Fortran_COMPILER -S .. + - make -j 4 + - echo "Compile complete." + timeout: 10 minutes + artifacts: + paths: + - build/CMakeCache.txt + - build/inmcm_sfx + + +dry-run: # This job runs in the test stage. + stage: test # It only starts when the job in the build stage completes successfully. + script: + - echo "Running unit tests... This will take about 60 seconds." + - cd build + - inmcm_sfx + - echo "Code coverage is 90%" -- GitLab