Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NP_TMcode
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giacomo Mulas
NP_TMcode
Commits
c60159d4
Commit
c60159d4
authored
1 year ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Use np_tmcode docker image in pipeline
parent
7002255c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+36
-36
36 additions, 36 deletions
.gitlab-ci.yml
with
36 additions
and
36 deletions
.gitlab-ci.yml
+
36
−
36
View file @
c60159d4
# CI pipeline configuration
# CI pipeline configuration
default
:
default
:
image
:
g
cc
image
:
g
mulas/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
:
...
@@ -25,15 +25,15 @@ stages:
...
@@ -25,15 +25,15 @@ stages:
building_stage
:
building_stage
:
stage
:
build
stage
:
build
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
...
@@ -42,22 +42,22 @@ building_stage:
...
@@ -42,22 +42,22 @@ building_stage:
-
echo $CI_COMMIT_BRANCH
-
echo $CI_COMMIT_BRANCH
-
cd src
-
cd src
-
echo "Running make (ONLY C++ CODE)"
-
echo "Running make (ONLY C++ CODE)"
#
- make
conly
-
make
running_stage
:
running_stage
:
stage
:
run
stage
:
run
allow_failure
:
false
allow_failure
:
false
needs
:
needs
:
-
job
:
building_stage
-
job
:
building_stage
#
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
...
@@ -66,26 +66,26 @@ running_stage:
...
@@ -66,26 +66,26 @@ 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
allow_failure
:
true
allow_failure
:
true
needs
:
needs
:
-
job
:
running_stage
-
job
:
running_stage
#
artifacts:
artifacts
:
#
paths:
paths
:
#
- build/cluster/pycompare.html
-
build/cluster/pycompare.html
#
- build/sphere/pycompare.html
-
build/sphere/pycompare.html
#
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
...
@@ -93,11 +93,11 @@ testing_stage:
...
@@ -93,11 +93,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.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment