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

Revert pipeline to debian-slim distro

parent a447ed8a
No related branches found
No related tags found
No related merge requests found
# CI pipeline configuration # CI pipeline configuration
default:
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:
rules: rules:
...@@ -25,6 +22,7 @@ stages: ...@@ -25,6 +22,7 @@ stages:
building_stage: building_stage:
stage: build stage: build
allow_failure: false allow_failure: false
image: debian:bookworm-slim
artifacts: artifacts:
paths: paths:
- build/cluster/* - build/cluster/*
...@@ -42,8 +40,10 @@ building_stage: ...@@ -42,8 +40,10 @@ building_stage:
- echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH
- echo "Getting system info ..." - echo "Getting system info ..."
- cat /etc/os-release - cat /etc/os-release
- echo "Updating system ..."
- apt update
- echo "Installing dependencies" - echo "Installing dependencies"
- sudo yum install -y g++ gfortran make - apt install -y g++ gfortran make
- cd src - cd src
- echo "Running make" - echo "Running make"
- make - make
...@@ -53,6 +53,9 @@ running_stage: ...@@ -53,6 +53,9 @@ running_stage:
allow_failure: false allow_failure: false
needs: needs:
- job: building_stage - job: building_stage
image: debian:bookworm-slim
dependencies:
- building_stage
artifacts: artifacts:
paths: paths:
- build/cluster/* - build/cluster/*
...@@ -68,8 +71,10 @@ running_stage: ...@@ -68,8 +71,10 @@ running_stage:
- hostname - hostname
- echo $CI_COMMIT_SHA - echo $CI_COMMIT_SHA
- echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH
- echo "Updating system" - echo "Updating system ..."
- sudo yum install -y g++ gfortran gdb - 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
...@@ -84,6 +89,9 @@ testing_stage: ...@@ -84,6 +89,9 @@ testing_stage:
allow_failure: true allow_failure: true
needs: needs:
- job: running_stage - job: running_stage
dependencies:
- building_stage
- running_stage
artifacts: artifacts:
paths: paths:
- build/cluster/pycompare.html - build/cluster/pycompare.html
...@@ -98,8 +106,10 @@ testing_stage: ...@@ -98,8 +106,10 @@ testing_stage:
- hostname - hostname
- echo $CI_COMMIT_SHA - echo $CI_COMMIT_SHA
- echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH
- echo "Updating system" - echo "Updating system ..."
- sudo yum install -y python3 - 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