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
c1be6d57
Commit
c1be6d57
authored
1 year ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Peek into system command directories
parent
a7934d60
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+28
-22
28 additions, 22 deletions
.gitlab-ci.yml
with
28 additions
and
22 deletions
.gitlab-ci.yml
+
28
−
22
View file @
c1be6d57
...
...
@@ -39,12 +39,18 @@ building_stage:
-
echo $CI_COMMIT_BRANCH
-
echo "Getting system info ..."
-
cat /etc/os-release
-
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
-
echo "/bin/g*"
-
ls /bin/g*
-
echo "/usr/bin/g*"
-
ls /usr/bin/g*
-
echo "/usr/local/bin/g*"
-
ls /usr/local/bin/g*
#- 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
:
stage
:
run
...
...
@@ -68,14 +74,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
...
...
@@ -100,12 +106,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