eReactingFoam-4.x/.gitlab-ci.yml
2018-11-02 16:10:28 -04:00

46 lines
1.1 KiB
YAML

image: park0d/of4builder:cantera
allwmake:
stage: build
tags:
- openfoam4
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
script:
- cd ${CI_PROJECT_DIR}
- wmake diffusivityModel
artifacts:
paths:
- diffusivityModel/Make/*/*
expire_in: 1 hour
canteraTest:
stage: test
tags:
- openfoam4
cache:
paths:
- OF4IW
policy: pull
before_script:
- source OF4IW/OpenFOAM-4.x/etc/bashrc
script:
- cd ${CI_PROJECT_DIR}
- wmake diffusivityModel
- wmake testApp
- cd testApp
- ./Alltest
artifacts:
paths:
- testApp/cases/*/canteraTest.log
when: always