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

Configure project runner

parent df3d9891
No related branches found
No related tags found
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:
...@@ -42,18 +42,9 @@ building_stage: ...@@ -42,18 +42,9 @@ 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 "/bin/c*" - cd src
- ls /bin/c* - echo "Running make ..."
- echo "/usr/bin/c*" - make
- ls /usr/bin/c*
- echo "/usr/local/bin/c*"
- ls /usr/local/bin/c*
#- cd src/sphere
#- echo "Building SPHERE ..."
#- gcc -O2 -lstdc++ -lm np_sphere.cpp sphere.cpp ../libnptm/Commons.cpp ../libnptm/Configuration.cpp ../libnptm/Parsers.cpp -o ../../build/sphere/np_sphere
#- cd ../cluster
#- echo "Building CLUSTER ..."
#- gcc -O2 -lstdc++ -lm np_cluster.cpp cluster.cpp ../libnptm/Commons.cpp ../libnptm/Configuration.cpp ../libnptm/Parsers.cpp ../sphere/sphere.cpp -o ../../build/cluster/np_cluster
running_stage: running_stage:
stage: run stage: run
...@@ -77,14 +68,14 @@ running_stage: ...@@ -77,14 +68,14 @@ running_stage:
- hostname - hostname
- echo $CI_COMMIT_SHA - echo $CI_COMMIT_SHA
- 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
...@@ -109,12 +100,12 @@ testing_stage: ...@@ -109,12 +100,12 @@ testing_stage:
- hostname - hostname
- echo $CI_COMMIT_SHA - echo $CI_COMMIT_SHA
- echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH
#- 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"
#- python3 ../../src/scripts/pycompare.py --ffile=$FFILE --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"
#- export FFILE=../../test_data/cluster/OCLU - export FFILE=../../test_data/cluster/OCLU
#- python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OCLU --html - python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OCLU --html
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