Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
vlbi_resolve
Commits
7999b0c1
Commit
7999b0c1
authored
Feb 13, 2020
by
Philipp Arras
Browse files
Add CI
parent
0db7965b
Pipeline
#69305
passed with stages
in 4 minutes and 16 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
7999b0c1
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; }'
Dockerfile
View file @
7999b0c1
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment