Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
EnMAP
sensormapgeo
Commits
8c90e586
Commit
8c90e586
authored
Sep 07, 2021
by
Daniel Scheffler
Browse files
CI now uses Mambaforge. Revised test_sensormapgeo_install CI job.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
35c5feb9
Pipeline
#27287
canceled with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
8c90e586
...
...
@@ -10,7 +10,7 @@ stages:
test_sensormapgeo
:
stage
:
test
script
:
-
source /root/m
iniconda3
/bin/activate ci_env
-
source /root/m
ambaforge
/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/m
iniconda3
/bin/activate ci_env
-
source /root/m
ambaforge
/bin/activate ci_env
-
make lint
artifacts
:
paths
:
...
...
@@ -46,7 +45,7 @@ test_styles:
test_urls
:
stage
:
test
script
:
-
source /root/m
iniconda3
/bin/activate ci_env
-
source /root/m
ambaforge
/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
# re
solve some requirements with conda
# - conda config --set channel_priority strict # otherwise gdal or libgdal may be installed from defaults channe
l
-
conda
install --yes -q -c conda-forge numpy gdal 'pyresample<1.17.0' pyqt scikit-image pyproj lxml geopandas ipython _openmp_mutex=*=*llvm*
#
c
re
ate sensormapgeo environment from environment_sensormapgeo.yml
-
mamba env create --name sensormapgeo_test -f tests/CI_docker/context/environment_sensormapgeo.ym
l
-
conda
activate sensormapgeo_test
# run installer
-
python setup.py install
...
...
@@ -121,7 +113,7 @@ deploy_pypi:
dependencies
:
-
test_sensormapgeo
script
:
-
source /root/m
iniconda3
/bin/activate ci_env
-
source /root/m
ambaforge
/bin/activate ci_env
-
pip install -U twine
-
python setup.py sdist
-
twine upload dist/*
# requires creds as environment variables
...
...
HISTORY.rst
View file @
8c90e586
...
...
@@ -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)
...
...
tests/CI_docker/context/environment_sensormapgeo.yml
View file @
8c90e586
...
...
@@ -26,4 +26,6 @@ dependencies:
-
pylint
-
rednose
-
sphinx-argparse
-
sphinx-autodoc-typehints
-
sphinx_rtd_theme
-
urlchecker
tests/CI_docker/context/sensormapgeo_ci.docker
View file @
8c90e586
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/m
iniconda3
/bin/activate;
\
cond
a update -n base -c conda-forge
conda
;
\
source /root/m
ambaforge
/bin/activate;
\
mamb
a update -n base -c conda-forge
--all
;
\
conda activate ci_env;
\
cond
a env update -n ci_env -f /root/environment_sensormapgeo.yml"
mamb
a env update -n ci_env -f /root/environment_sensormapgeo.yml"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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