***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ngmultiscale
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hanser, Valentin
ngmultiscale
Commits
3f95398c
Commit
3f95398c
authored
1 year ago
by
Hanser, Valentin
Browse files
Options
Downloads
Patches
Plain Diff
test pipeline
parent
ac519988
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#243352
failed with stage
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+11
-170
11 additions, 170 deletions
.gitlab-ci.yml
with
11 additions
and
170 deletions
.gitlab-ci.yml
+
11
−
170
View file @
3f95398c
...
...
@@ -25,18 +25,16 @@ build-ngsolve-job: # This job runs in the build stage, which runs first.
image
:
python:3.10
before_script
:
-
apt-get update -q -y
-
apt-get -y install python3 python3-distutils python3-tk libpython3-dev libxmu-dev tk-dev tcl-dev cmake git g++ libglu1-mesa-dev liblapacke-dev libocct-data-exchange-dev libocct-draw-dev occt-misc libtbb-dev libxi-dev
script
:
-
export BASEDIR=./ngsuite
-
mkdir -p $BASEDIR
-
cd $BASEDIR && git clone https://github.com/NGSolve/ngsolve.git ngsolve-src
-
cd $BASEDIR/ngsolve-src && git submodule update --init --recursive
-
mkdir
$BASEDIR/ngsolve-build
-
mkdir $BASEDIR/ngsolve-install
-
cd $BASEDIR/ngsolve-build
-
cmake -DCMAKE_INSTALL_PREFIX=${BASEDIR}/ngsolve-install ${BASEDIR}/ngsolve-src
-
touch test.txt
-
echo "this is my text" >> test.txt
-
mkdir
folder
-
cd folder
-
touch infolder.txt
-
echo "in folder text" >> infolder.txt
-
make -j4
-
ls
-
ls $BASEDIR
...
...
@@ -74,28 +72,14 @@ build-cempy-job:
dependencies
:
-
"
build-ngsolve-job"
before_script
:
-
apt-get update -q -y
-
apt-get install -y python3-pip
-
python -V
-
apt-get install -y cmake
script
:
-
ls
-
ls ./ngsuite
-
echo "Compiling the code for ngSolve..."
-
cd ./C++/cmake
-
mkdir build
-
cd build
-
cmake .. -DOPTION_BIOTSAVART=OFF -DOPTION_BSPLINEINTERFACESPACE=OFF -DOPTION_PREISACH_SCALAR=OFF -DOPTION_PREISACH_VECTOR=OFF -DOPTION_ENERGYBASEDMODEL=OFF -DOPTION_MARKUSLIB=OFF -DOPTION_MULTISCALE=OFF -DOPTION_MUNONLINBIRO=OFF -DOPTION_NONLINEAR=OFF -DOPTION_PHIFUNCTIONS=OFF
-
make -j4
-
python3 -c "from ngsolve import *;import cempy as cp"
-
cd
-
export PYTHONPATH=~/C++/cmake/build
-
python3 -c "from ngsolve import *;import cempy as cp"
-
cat test.txt
-
cd folder
-
ls
-
cat infolder.txt
cache
:
-
key
:
cache-cempy
...
...
@@ -113,146 +97,3 @@ build-cempy-job:
-
./C++/cmake/build/cempy.so
build-basicTypes-job
:
# This job runs in the build stage, which runs first.
stage
:
build
image
:
gcc
before_script
:
-
apt update && apt -y install make
script
:
-
echo "Compiling the code for basicTypes..."
-
cd ./C++/basicTypes
-
make unitTest
-
echo "Compile basicTypes complete."
artifacts
:
name
:
"
$CI_JOB_ID"
when
:
on_success
expire_in
:
"
1
days"
paths
:
-
./C++/basicTypes/unitTest
-
./C++/basicTypes/*.o
build-unitTestEverett-job
:
# This job runs in the build stage, which runs first.
stage
:
build
image
:
gcc
before_script
:
-
apt update && apt -y install make
script
:
-
echo "Compiling the code for EverettMatrix..."
-
cd ./C++/preisach/preisachScalar/
-
make unitTestEverett -j3
-
echo "Compile unitTestEverett complete."
artifacts
:
name
:
"
$CI_JOB_ID"
untracked
:
true
when
:
on_success
expire_in
:
"
1
days"
paths
:
-
./C++/preisach/preisachScalar/unitTestEverett
-
./C++/preisach/preisachScalar/*.o
build-unitTestPreisachScalar-job
:
# This job runs in the build stage, which runs first.
stage
:
build
image
:
gcc
before_script
:
-
apt update && apt -y install make
script
:
-
echo "Compiling the code for PreisachScalar..."
-
cd ./C++/preisach/preisachScalar/
-
make unitTest -j3
-
echo "Compile unitTest complete."
artifacts
:
name
:
"
$CI_JOB_ID"
untracked
:
true
when
:
on_success
expire_in
:
"
1
days"
paths
:
-
./C++/preisach/preisachScalar/unitTest
-
./C++/preisach/preisachScalar/*.o
# ---------------------------------------------------------------
unit-test-basicTypes-job
:
# This job runs in the test stage.
stage
:
test
# It only starts when the job in the build stage completes successfully.
image
:
gcc
dependencies
:
-
"
build-basicTypes-job"
needs
:
-
"
build-basicTypes-job"
script
:
-
echo "Running unit tests basicTypes."
-
cd ./C++/basicTypes
-
./unitTest
unit-test-EverettUnitTest-job
:
# This job runs in the test stage.
stage
:
test
# It only starts when the job in the build stage completes successfully.
image
:
gcc
dependencies
:
-
"
build-unitTestEverett-job"
needs
:
[
"
build-unitTestEverett-job"
]
script
:
-
echo "Running unit tests Everett Matrix."
-
cd ./C++/preisach/preisachScalar
-
make
unit-test-PreisachScalarUnitTest-job
:
# This job runs in the test stage.
stage
:
test
# It only starts when the job in the build stage completes successfully.
image
:
gcc
dependencies
:
-
"
build-unitTestPreisachScalar-job"
needs
:
[
"
build-unitTestPreisachScalar-job"
]
script
:
-
echo "Running unit tests PreisachScalar."
-
cd ./C++/preisach/preisachScalar
-
./unitTest
unit-test-python3-MS_helper_function
:
stage
:
test
# It only starts when the job in the build stage completes successfully.
image
:
python:3.10
needs
:
[]
before_script
:
-
apt-get update -q -y
-
apt-get install -y python3-pip
-
python -V
-
pip3 install ngsolve
-
pip3 install numpy
-
pip3 install matplotlib
-
pip3 install sympy
-
export PYTHONPATH=/builds/valentin.hanser/ngmultiscale/python:/builds/valentin.hanser/ngmultiscale/python/MeshGenerators
# - echo $PYTHONPATH
script
:
-
echo "Running python3 unit tests MS_helper_function."
-
cd unitTests
-
echo $PYTHONPATH
-
python3 unitTest_MS_helper_Functions.py
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