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
726bb344
Commit
726bb344
authored
1 year ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Configure project runner
parent
df3d9891
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
+20
-29
20 additions, 29 deletions
.gitlab-ci.yml
with
20 additions
and
29 deletions
.gitlab-ci.yml
+
20
−
29
View file @
726bb344
# CI pipeline configuration
default
:
image
:
g
cc
image
:
g
mulas/np-tmcode
# Switch from branch pipelines to merge request pipelines when a merge request is created
workflow
:
...
...
@@ -42,18 +42,9 @@ building_stage:
-
echo $CI_COMMIT_BRANCH
-
echo "Getting system info ..."
-
cat /etc/os-release
-
echo "/bin/c*"
-
ls /bin/c*
-
echo "/usr/bin/c*"
-
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
-
cd src
-
echo "Running make ..."
-
make
running_stage
:
stage
:
run
...
...
@@ -77,14 +68,14 @@ running_stage:
-
hostname
-
echo $CI_COMMIT_SHA
-
echo $CI_COMMIT_BRANCH
#
- 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
-
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
testing_stage
:
stage
:
test
...
...
@@ -109,12 +100,12 @@ testing_stage:
-
hostname
-
echo $CI_COMMIT_SHA
-
echo $CI_COMMIT_BRANCH
#
- 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
#
- cd ../cluster
#
- echo "Comparing output of CLUSTER"
#
- export FFILE=../../test_data/cluster/OCLU
#
- python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OCLU --html
-
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
-
cd ../cluster
-
echo "Comparing output of CLUSTER"
-
export FFILE=../../test_data/cluster/OCLU
-
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