Skip to content
Snippets Groups Projects
Commit 5802122a authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Use debian-slim based image for pipeline runner

parent c60159d4
No related branches found
No related tags found
No related merge requests found
# CI pipeline configuration # CI pipeline configuration
default: default:
image: gmulas/np-tmcode image: debian:bookworm-slim
# Switch from branch pipelines to merge request pipelines when a merge request is created # Switch from branch pipelines to merge request pipelines when a merge request is created
workflow: workflow:
...@@ -34,14 +34,20 @@ building_stage: ...@@ -34,14 +34,20 @@ building_stage:
- ".git*" - ".git*"
- ".git/**/*" - ".git/**/*"
expire_in: 2 hours expire_in: 2 hours
tags:
- saas-linux-small-amd64
script: script:
# bash commands to be executed # bash commands to be executed
- pwd - pwd
- hostname - hostname
- echo $CI_COMMIT_SHA - echo $CI_COMMIT_SHA
- echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH
- echo "Updating system"
- apt update
- echo "Installing dependencies"
- apt install -y g++ gfortran make
- cd src - cd src
- echo "Running make (ONLY C++ CODE)" - echo "Running make"
- make - make
running_stage: running_stage:
...@@ -58,12 +64,18 @@ running_stage: ...@@ -58,12 +64,18 @@ running_stage:
- ".git*" - ".git*"
- ".git/**/*" - ".git/**/*"
expire_in: 2 hours expire_in: 2 hours
tags:
- saas-linux-small-amd64
script: script:
# bash commands to be executed # bash commands to be executed
- pwd - pwd
- hostname - hostname
- echo $CI_COMMIT_SHA - echo $CI_COMMIT_SHA
- echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH
- echo "Updating system"
- apt update
- echo "Installing dependencies"
- apt install -y g++ gfortran gdb
- cd build/sphere - cd build/sphere
- echo "Running np_sphere" - echo "Running np_sphere"
- chmod +x np_sphere - chmod +x np_sphere
...@@ -86,12 +98,18 @@ testing_stage: ...@@ -86,12 +98,18 @@ testing_stage:
- ".git*" - ".git*"
- ".git/**/*" - ".git/**/*"
expire_in: 2 hours expire_in: 2 hours
tags:
- saas-linux-small-amd64
script: script:
# bash commands to be executed # bash commands to be executed
- pwd - pwd
- hostname - hostname
- echo $CI_COMMIT_SHA - echo $CI_COMMIT_SHA
- echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH
- echo "Updating system"
- apt update
- echo "Installing dependencies ..."
- apt install -y python3
- cd build/sphere - cd build/sphere
- export FFILE=../../test_data/sphere/OSPH - export FFILE=../../test_data/sphere/OSPH
- echo "Comparing output of SPHERE" - echo "Comparing output of SPHERE"
......
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