diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..73632c2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,34 @@ +cache: + paths: + - OF4IW + +before_script: + - source /OpenFOAM/OpenFOAM-4.x/etc/bashrc + - "[[ -d OF4IW/OpenFOAM-4.x ]] || git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/park0d/OpenFOAM-4.x.git OF4IW/OpenFOAM-4.x" + - "[[ -d OF4IW/ThirdParty-4.x ]] || git clone https://github.com/OpenFOAM/ThirdParty-4.x.git OF4IW/ThirdParty-4.x" + + +allwmake: + stage: build + image: localhost:5000/of4iw + tags: + - openfoam4 + script: + - wmake diffusivityModel + artifacts: + paths: + - diffusivityModel/Make/*/* + expire_in: 1 hour + + +canteraTest: + stage: test + image: localhost:5000/of4iw + tags: + - openfoam4 + script: + - wmake diffusivityModel + - wmake testApp + - ./testApp/canteraTest -case testApp/gri + +