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
geomultisens
specclassify
Commits
aabb12c3
Commit
aabb12c3
authored
Sep 07, 2021
by
Daniel Scheffler
Browse files
CI now uses Mambaforge. Revised test_specclassify_install CI job.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
ecbbe99f
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
aabb12c3
...
...
@@ -10,12 +10,10 @@ stages:
test_specclassify
:
stage
:
test
script
:
-
source /root/m
iniconda3
/bin/activate ci_env
-
source /root/m
ambaforge
/bin/activate ci_env
-
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
:
...
...
@@ -29,7 +27,7 @@ test_specclassify:
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
:
...
...
@@ -42,7 +40,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
...
...
@@ -51,17 +49,12 @@ test_urls:
test_specclassify_install
:
stage
:
test
script
:
-
source /root/miniconda3/bin/activate
-
source /root/mambaforge/bin/activate
-
mamba update -n base -c conda-forge --all
# update conda and python
-
conda update -n base -c conda-forge conda
# - conda update -c conda-forge python
-
conda create -y -q --name specclassify_testinstall python=3
-
conda activate specclassify_testinstall
# resolve some requirements with conda
-
conda install --yes -q -c conda-forge numpy gdal scikit-image matplotlib pyproj shapely geopandas
# create arosics environment from environment_arosics.yml
-
mamba env create --name specclassify_test -f tests/CI_docker/context/environment_specclassify.yml
-
conda activate specclassify_test
# run installer
-
python setup.py install
...
...
@@ -116,7 +109,7 @@ deploy_pypi:
dependencies
:
-
test_specclassify
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
...
...
tests/CI_docker/context/environment_specclassify.yml
View file @
aabb12c3
...
...
@@ -26,5 +26,7 @@ dependencies:
-
pydocstyle
-
rednose
-
sphinx-argparse
-
sphinx-autodoc-typehints
-
sphinx_rtd_theme
-
dill
-
urlchecker
tests/CI_docker/context/specclassify_ci.docker
View file @
aabb12c3
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)
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_specclassify.yml"
mamb
a env update -n ci_env -f /root/environment_specclassify.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