Skip to content
Snippets Groups Projects
Commit bac6eccb authored by Philipp Arras's avatar Philipp Arras
Browse files

Merge branch 'ci' into 'refactor_pa'

Add ci

See merge request ift/aachen_scripts!2
parents ee9facdf 358e704a
Branches
No related tags found
No related merge requests found
image: $CONTAINER_TEST_IMAGE
variables:
CONTAINER_TEST_IMAGE: gitlab-registry.mpcdf.mpg.de/$CI_PROJECT_PATH:$CI_BUILD_REF_NAME
OMP_NUM_THREADS: 1
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build_docker
- test
build_docker:
image: docker:stable
stage: build_docker
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlab-registry.mpcdf.mpg.de
- docker build -t $CONTAINER_TEST_IMAGE .
- docker push $CONTAINER_TEST_IMAGE
tests:
stage: test
script:
- cd nifty && python3 setup.py install --user -f && cd ..
- for file in *.py; do python3 $file; done
artifacts:
paths:
- '*.png'
FROM debian:testing-slim
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
# Needed for setup
git python3-pip \
# Packages needed for NIFTy
python3-scipy \
# Optional NIFTy dependencies
python3-matplotlib \
&& pip3 install git+https://gitlab.mpcdf.mpg.de/mtr/pypocketfft.git \
&& rm -rf /var/lib/apt/lists/*
# Set matplotlib backend
ENV MPLBACKEND agg
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment