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
3a99c362
Commit
3a99c362
authored
1 year ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Use pipeline in debug mode
parent
be027b1a
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
+49
-47
49 additions, 47 deletions
.gitlab-ci.yml
with
49 additions
and
47 deletions
.gitlab-ci.yml
+
49
−
47
View file @
3a99c362
...
...
@@ -25,91 +25,93 @@ stages:
building_stage
:
stage
:
build
allow_failure
:
false
artifacts
:
paths
:
-
build/cluster/*
-
build/sphere/*
-
build/trapping/*
exclude
:
-
"
.git*"
-
"
.git/**/*"
expire_in
:
2 hours
#
artifacts:
#
paths:
#
- build/cluster/*
#
- build/sphere/*
#
- build/trapping/*
#
exclude:
#
- ".git*"
#
- ".git/**/*"
#
expire_in: 2 hours
script
:
# bash commands to be executed
-
pwd
-
hostname
-
echo $CI_COMMIT_SHA
-
echo $CI_COMMIT_BRANCH
-
echo "Updating system"
-
apt update
-
echo "Getting system info ..."
-
cat /etc/os-release
#- echo "Updating system"
#- apt update
-
echo "Installing dependencies"
-
apt install -y g++ gfortran make
#
- apt install -y g++ gfortran make
-
cd src
-
echo "Running make"
-
make
#
- make
running_stage
:
stage
:
run
allow_failure
:
false
needs
:
-
job
:
building_stage
artifacts
:
paths
:
-
build/cluster/*
-
build/sphere/*
-
build/trapping/*
exclude
:
-
"
.git*"
-
"
.git/**/*"
expire_in
:
2 hours
#
artifacts:
#
paths:
#
- build/cluster/*
#
- build/sphere/*
#
- build/trapping/*
#
exclude:
#
- ".git*"
#
- ".git/**/*"
#
expire_in: 2 hours
script
:
# bash commands to be executed
-
pwd
-
hostname
-
echo $CI_COMMIT_SHA
-
echo $CI_COMMIT_BRANCH
-
echo "Updating system"
-
apt update
#
- echo "Updating system"
#
- apt update
-
echo "Installing dependencies"
-
apt install -y g++ gfortran gdb
-
cd build/sphere
-
echo "Running np_sphere"
-
chmod +x np_sphere
-
./np_sphere
-
cd ../cluster
#
- apt install -y g++ gfortran gdb
#
- cd build/sphere
#
- echo "Running np_sphere"
#
- chmod +x np_sphere
#
- ./np_sphere
#
- cd ../cluster
-
echo "Running np_cluster"
-
chmod +x np_cluster
-
./np_cluster
#
- chmod +x np_cluster
#
- ./np_cluster
testing_stage
:
stage
:
test
allow_failure
:
true
needs
:
-
job
:
running_stage
artifacts
:
paths
:
-
build/cluster/pycompare.html
-
build/sphere/pycompare.html
exclude
:
-
"
.git*"
-
"
.git/**/*"
expire_in
:
2 hours
#
artifacts:
#
paths:
#
- build/cluster/pycompare.html
#
- build/sphere/pycompare.html
#
exclude:
#
- ".git*"
#
- ".git/**/*"
#
expire_in: 2 hours
script
:
# bash commands to be executed
-
pwd
-
hostname
-
echo $CI_COMMIT_SHA
-
echo $CI_COMMIT_BRANCH
-
echo "Updating system"
-
apt update
-
echo "Installing dependencies ..."
-
apt install -y python3
-
cd build/sphere
#
- echo "Updating system"
#
- apt update
#
- echo "Installing dependencies ..."
#
- apt install -y python3
#
- cd build/sphere
-
export FFILE=../../test_data/sphere/OSPH
-
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
-
echo "Comparing output of CLUSTER"
-
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
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