eReactingFoam-4.x/.gitlab-ci.yml
2018-12-21 08:21:00 -05:00

74 lines
1.6 KiB
YAML

image: park0d/of4builder:cantera
cache:
paths:
- OF4IW
before_script:
- "[[ -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"
- source OF4IW/OpenFOAM-4.x/etc/bashrc
- cd OF4IW/OpenFOAM-4.x
- git remote remove origin
- git remote add origin https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/park0d/OpenFOAM-4.x.git
- git pull origin ionicWind
- ./Allwmake -j
allwmake:
stage: build
tags:
- openfoam4
script:
- cd ${CI_PROJECT_DIR}
- wmake diffusivityModel
artifacts:
paths:
- diffusivityModel/Make/*/*
expire_in: 1 hour
canteraTestPure:
stage: test
tags:
- openfoam4
script:
- cd ${CI_PROJECT_DIR}
- wmake diffusivityModel
- wmake testApp
- cd testApp
- ./Alltest
artifacts:
paths:
- testApp/cases/*/canteraTest.log
when: always
canteraTestDiffusionFlame:
stage: test
tags:
- openfoam4
script:
- cd ${CI_PROJECT_DIR}
- wmake diffusivityModel
- wmake testApp
- cd testApp
- ./Alltest2.py c2h6_diffusion.csv diffusion
artifacts:
paths:
- testApp/diffusion/*/canteraTest.log
when: always
canteraTestPremixedFlame:
stage: test
tags:
- openfoam4
script:
- cd ${CI_PROJECT_DIR}
- wmake diffusivityModel
- wmake testApp
- cd testApp
- ./Alltest2.py ch4_adiabatic.csv premixed
artifacts:
paths:
- testApp/premixed/*/canteraTest.log
when: always