Newer
Older
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- _skbuild
- _skbuild/
- Python/venv
before_script:
- python3 -m venv --system-site-packages Python/venv
- source Python/venv/bin/activate
script:
- python3 setup.py install
build_singularity_image:
stage: build
rules:
- if: $CI_COMMIT_TAG
artifacts:
paths:
- Containers/VirtualFluidsOpenMPI.sif
script:
- singularity build Containers/VirtualFluidsOpenMPI.sif Containers/VirtualFluidsOpenMPI.def
- ls -sh Containers/VirtualFluidsOpenMPI.sif
- export VF_UNITTESTS=$(find _skbuild -name basicsTests)
artifacts:
when: on_failure
paths:
- output/mq/mq10000/
- export PYTHONPATH="Python"
- source Python/venv/bin/activate
- eval "$(ssh-agent -s)"
- ssh-add $SSH_PRIVATE_KEY
- ansible-playbook -i ansible/hosts.cfg ansible/playbook.yml -u $REMOTE_USER
parallel:
matrix:
- ANSIBLE_MATRIX: 0
REMOTE_USER:
- y0054816
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG
script:
- echo "Creating release with tag $CI_COMMIT_TAG"
- release-cli create --name "VirtualFluids $CI_COMMIT_TAG" \
--description "VirtualFluids CFD Simulator" \
--tag-name "$CI_COMMIT_TAG" \
--ref "$CI_COMMIT_SHA" \
--job-token "$CI_JOB_TOKEN" \
--assets-link="{'name':'VirtualFluidsSingularityImage_OpenMPI','url':'','type':'other','filepath':'Containers/VirtualFluidsOpenMPI.sif'}"