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

Merge branch 'pipeline_runner' into 'master'

Test pipeline runner

See merge request giacomo.mulas/np_tmcode!11
parents 7002255c f2f785f7
Branches
Tags
No related merge requests found
# CI pipeline configuration # CI pipeline configuration
default: default:
image: gcc image: gmulas/np-tmcode
# 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:
...@@ -24,40 +24,46 @@ stages: ...@@ -24,40 +24,46 @@ stages:
building_stage: building_stage:
stage: build stage: build
tags: ["np-tmcode"]
allow_failure: false allow_failure: false
#artifacts: artifacts:
# paths: paths:
# - build/cluster/* - build/cluster/*
# - build/sphere/* - build/sphere/*
#- build/trapping/* #- build/trapping/*
# exclude: exclude:
# - ".git*" - ".git*"
# - ".git/**/*" - ".git/**/*"
# expire_in: 2 hours expire_in: 2 hours
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 "Getting system info ..."
- cat /etc/os-release
- cd src - cd src
- echo "Running make (ONLY C++ CODE)" - echo "Running make ..."
#- make conly - make
running_stage: running_stage:
stage: run stage: run
tags: ["np-tmcode"]
allow_failure: false allow_failure: false
needs: needs:
- job: building_stage - job: building_stage
#artifacts: dependencies:
# paths: - building_stage
# - build/cluster/* artifacts:
# - build/sphere/* paths:
- build/cluster/c_*
- build/sphere/c_*
#- build/trapping/* #- build/trapping/*
# exclude: exclude:
# - ".git*" - ".git*"
# - ".git/**/*" - ".git/**/*"
# expire_in: 2 hours expire_in: 2 hours
script: script:
# bash commands to be executed # bash commands to be executed
- pwd - pwd
...@@ -66,26 +72,31 @@ running_stage: ...@@ -66,26 +72,31 @@ running_stage:
- echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH
- cd build/sphere - cd build/sphere
- echo "Running np_sphere" - echo "Running np_sphere"
#- chmod +x np_sphere - chmod +x np_sphere
#- ./np_sphere - ./np_sphere
- cd ../cluster - cd ../cluster
- echo "Running np_cluster" - echo "Running np_cluster"
#- chmod +x np_cluster - chmod +x np_cluster
#- ./np_cluster - ./np_cluster
testing_stage: testing_stage:
stage: test stage: test
tags: ["np-tmcode"]
allow_failure: true allow_failure: true
needs: needs:
- job: building_stage
- job: running_stage - job: running_stage
#artifacts: dependencies:
# paths: - building_stage
# - build/cluster/pycompare.html - running_stage
# - build/sphere/pycompare.html artifacts:
# exclude: paths:
# - ".git*" - build/cluster/pycompare.html
# - ".git/**/*" - build/sphere/pycompare.html
# expire_in: 2 hours exclude:
- ".git*"
- ".git/**/*"
expire_in: 2 hours
script: script:
# bash commands to be executed # bash commands to be executed
- pwd - pwd
...@@ -93,11 +104,11 @@ testing_stage: ...@@ -93,11 +104,11 @@ testing_stage:
- echo $CI_COMMIT_SHA - echo $CI_COMMIT_SHA
- echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH
- cd build/sphere - cd build/sphere
#- cp ../../test_data/sphere/OSPH . - export FFILE=../../test_data/sphere/OSPH
- echo "Comparing output of SPHERE" - echo "Comparing output of SPHERE"
#- python3 ../../src/scripts/pycompare.py --ffile=OSPH --cfile=c_OSPH --html - python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OSPH --html
- cd ../cluster - cd ../cluster
- echo "Comparing output of CLUSTER" - echo "Comparing output of CLUSTER"
#- cp ../../test_data/cluster/OCLU . - export FFILE=../../test_data/cluster/OCLU
#- python3 ../../src/scripts/pycompare.py --ffile=OCLU --cfile=c_OCLU --html - python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OCLU --html
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment