Commit 7999b0c1 authored by Philipp Arras's avatar Philipp Arras
Browse files

Add CI

parent 0db7965b
Pipeline #69305 passed with stages
in 4 minutes and 16 seconds
image: $CONTAINER_TEST_IMAGE
variables:
CONTAINER_TEST_IMAGE: gitlab-registry.mpcdf.mpg.de/$CI_PROJECT_PATH:$CI_BUILD_REF_NAME
OMP_NUM_THREADS: 4
GIT_SUBMODULE_STRATEGY: recursive
stages:
- first
- second
build_docker:
image: docker:stable
stage: first
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
test_serial:
stage: second
script:
- pytest -q --cov=src test.py
- >
python3 -m coverage report | tee coverage.txt
- >
grep TOTAL coverage.txt | awk '{ print "TOTAL: "$4; }'
FROM python:3.6-buster FROM python:3.6-buster
RUN pip3 install "scipy>=1.4" matplotlib git+https://gitlab.mpcdf.mpg.de/ift/nifty@bb1069ae91a0bca50af3ec49d6c6c5957424e9ae git+https://gitlab.mpcdf.mpg.de/ift/nifty_gridder.git@f1540b9cca161e1aa32aa3cd09a592b3dac5f16b pytest pytest-cov
ENV MPLBACKEND agg ENV MPLBACKEND agg
WORKDIR /eht WORKDIR /eht
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment