*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit d5f6d899 authored by Hanser, Valentin's avatar Hanser, Valentin
Browse files

test pipeline

parent 9cc0c2f3
No related branches found
No related tags found
No related merge requests found
Pipeline #243359 canceled with stage
in 56 seconds
......@@ -24,19 +24,23 @@ build-ngsolve-job: # This job runs in the build stage, which runs first.
stage: build
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:
- pwd
- export BASEDIR=/builds/valentin.hanser/ngmultiscal/ngsuite
- echo $BASEDIR
- mkdir -p $BASEDIR
- touch test.txt
- echo "this is my text" >> test.txt
- mkdir ngsuite
- cd ngsuite
- touch infolder.txt
- echo "in folder text" >> infolder.txt
- 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
- make -j4
- ls
- ls $BASEDIR
- cd
......@@ -74,13 +78,27 @@ build-cempy-job:
- "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
- cat test.txt
- cd ngsuite
- ls
- cat infolder.txt
- echo "Compiling the code for cempy..."
- 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"
cache:
- key: cache-cempy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment