Commit 8c90e586 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

CI now uses Mambaforge. Revised test_sensormapgeo_install CI job.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 35c5feb9
Pipeline #27287 canceled with stages
......@@ -10,7 +10,7 @@ stages:
test_sensormapgeo:
stage: test
script:
- source /root/miniconda3/bin/activate ci_env
- source /root/mambaforge/bin/activate ci_env
- pip install 'pyresample<1.17.0' # https://github.com/pytroll/pyresample/issues/325
......@@ -18,9 +18,8 @@ test_sensormapgeo:
- make nosetests
# create the docs
- pip install sphinx_rtd_theme # Read-the-docs theme for SPHINX documentation
- pip install sphinx-autodoc-typehints
- make docs
artifacts:
paths:
- htmlcov/
......@@ -33,7 +32,7 @@ test_sensormapgeo:
test_styles:
stage: test
script:
- source /root/miniconda3/bin/activate ci_env
- source /root/mambaforge/bin/activate ci_env
- make lint
artifacts:
paths:
......@@ -46,7 +45,7 @@ test_styles:
test_urls:
stage: test
script:
- source /root/miniconda3/bin/activate ci_env
- source /root/mambaforge/bin/activate ci_env
- pip install -U urlchecker
- make urlcheck
when: always
......@@ -55,19 +54,12 @@ test_urls:
test_sensormapgeo_install:
stage: test
script:
- source /root/miniconda3/bin/activate
# update conda and python
- conda update -n base -c conda-forge conda
# - conda update -c conda-forge python
# create sensormapgeo environment
- conda create -y -q --name sensormapgeo_testinstall python=3
- conda activate sensormapgeo_testinstall
- source /root/mambaforge/bin/activate
- mamba update -n base -c conda-forge --all
# resolve some requirements with conda
# - conda config --set channel_priority strict # otherwise gdal or libgdal may be installed from defaults channel
- conda install --yes -q -c conda-forge numpy gdal 'pyresample<1.17.0' pyqt scikit-image pyproj lxml geopandas ipython _openmp_mutex=*=*llvm*
# create sensormapgeo environment from environment_sensormapgeo.yml
- mamba env create --name sensormapgeo_test -f tests/CI_docker/context/environment_sensormapgeo.yml
- conda activate sensormapgeo_test
# run installer
- python setup.py install
......@@ -121,7 +113,7 @@ deploy_pypi:
dependencies:
- test_sensormapgeo
script:
- source /root/miniconda3/bin/activate ci_env
- source /root/mambaforge/bin/activate ci_env
- pip install -U twine
- python setup.py sdist
- twine upload dist/* # requires creds as environment variables
......
......@@ -2,6 +2,10 @@
History
=======
0.4.9 (coming soon)
-------------------
* CI now uses Mambaforge. Revised test_sensormapgeo_install CI job.
0.4.8 (2020-02-08)
......
......@@ -26,4 +26,6 @@ dependencies:
- pylint
- rednose
- sphinx-argparse
- sphinx-autodoc-typehints
- sphinx_rtd_theme
- urlchecker
FROM ci_base_centos:0.1
FROM ci_base_centos:0.2
# copy some needed stuff to /root
COPY *.yml /root/
# update the ci_env environment (that already contains all packages installed via 'docker_pyenvs' repo)
# NOTE: We update conda and Python to avoid version incompatibilities.
RUN /bin/bash -i -c "\
source /root/miniconda3/bin/activate; \
conda update -n base -c conda-forge conda ; \
source /root/mambaforge/bin/activate; \
mamba update -n base -c conda-forge --all ; \
conda activate ci_env; \
conda env update -n ci_env -f /root/environment_sensormapgeo.yml"
mamba env update -n ci_env -f /root/environment_sensormapgeo.yml"
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