image: $CONTAINER_TEST_IMAGE variables: CONTAINER_TEST_IMAGE: gitlab-registry.mpcdf.mpg.de/ift/nifty-dev:$CI_BUILD_REF_NAME OMP_NUM_THREADS: 1 stages: - build_docker - test - release - demo_runs build_docker_from_scratch: only: - schedules image: docker:stable stage: build_docker before_script: - ls script: - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlab-registry.mpcdf.mpg.de - docker build -t $CONTAINER_TEST_IMAGE --no-cache . - docker push $CONTAINER_TEST_IMAGE build_docker_from_cache: except: - schedules image: docker:stable stage: build_docker before_script: - ls 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_python2_with_coverage: stage: test variables: OMPI_MCA_btl_vader_single_copy_mechanism: none script: - mpiexec -n 2 --bind-to none pytest -q test - pytest -q --cov=nifty5 test - > python -m coverage report --omit "*plotting*,*distributed_do*" - > python -m coverage report --omit "*plotting*,*distributed_do*" | grep TOTAL | awk '{ print "TOTAL: "$4; }' test_python3: stage: test variables: OMPI_MCA_btl_vader_single_copy_mechanism: none script: - pytest-3 -q - mpiexec -n 2 --bind-to none pytest-3 -q pages: stage: release before_script: - ls script: - python setup.py install --user -f - sh docs/generate.sh - mv docs/build/ public/ artifacts: paths: - public only: - NIFTy_4 before_script: - python setup.py install --user -f - python3 setup.py install --user -f run_ipynb: stage: demo_runs script: - jupyter nbconvert --execute --ExecutePreprocessor.timeout=None demos/Wiener_Filter.ipynb run_getting_started_1: stage: demo_runs script: - python demos/getting_started_1.py - python3 demos/getting_started_1.py - mpiexec -n 2 --bind-to none python3 demos/getting_started_1.py 2> /dev/null artifacts: paths: - '*.png' run_getting_started_2: stage: demo_runs script: - python demos/getting_started_2.py - python3 demos/getting_started_2.py - mpiexec -n 2 --bind-to none python3 demos/getting_started_2.py 2> /dev/null artifacts: paths: - '*.png' run_getting_started_3: stage: demo_runs script: - python demos/getting_started_3.py - python3 demos/getting_started_3.py artifacts: paths: - '*.png' run_bernoulli: stage: demo_runs script: - python demos/bernoulli_demo.py - python3 demos/bernoulli_demo.py artifacts: paths: - '*.png' run_curve_fitting: stage: demo_runs script: - python demos/polynomial_fit.py - python3 demos/polynomial_fit.py artifacts: paths: - '*.png'