Commit 4d3ed54a authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

CI now uses Mambaforge.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 40707453
Pipeline #27258 failed with stages
in 25 minutes and 30 seconds
......@@ -19,7 +19,7 @@ stages:
test_py_tools_ds:
stage: test
script:
- source /root/miniconda3/bin/activate ci_env
- source /root/mambaforge/bin/activate ci_env
- make nosetests
- make docs
artifacts:
......@@ -34,7 +34,7 @@ test_py_tools_ds:
test_styles:
stage: test
script:
- source /root/miniconda3/bin/activate ci_env
- source /root/mambaforge/bin/activate ci_env
- make lint
artifacts:
paths:
......@@ -47,7 +47,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
......@@ -56,8 +56,7 @@ test_urls:
test_py_tools_ds_install:
stage: test
script:
- source /root/miniconda3/bin/activate
- conda install -c conda-forge mamba
- source /root/mambaforge/bin/activate
- mamba update -n base -c conda-forge --all
# create py_tools_ds environment from environment_py_tools_ds.yml
......@@ -116,7 +115,7 @@ deploy_pypi:
dependencies:
- test_py_tools_ds
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
......
FROM ci_base_centos:0.1
FROM ci_base_centos:0.2
RUN yum update -y && \
yum install -y patch # patch: conda skeleton will not work without: # https://stackoverflow.com/questions/40392161/building-conda-skeleton-from-pypi-package-throws-error
......@@ -8,8 +8,8 @@ COPY *.yml /root/
# update the ci_env environment (that already contains all packages installed via 'docker_pyenvs' repo)
# -> also include packages for conda deployment and upload
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_py_tools_ds.yml ; \
conda install -c conda-forge conda-build conda-build-all anaconda-client"
mamba env update -n ci_env -f /root/environment_py_tools_ds.yml ; \
mamba install -c conda-forge conda-build conda-build-all anaconda-client"
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