Commit c6ccbbec 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 6cfe3910
Pipeline #27260 passed with stages
in 55 minutes and 33 seconds
......@@ -10,7 +10,7 @@ stages:
test_enpt:
stage: test
script:
- source /root/miniconda3/bin/activate ci_env
- source /root/mambaforge/bin/activate ci_env
# update geoarray and py_tools_ds
# - pip install 'geoarray>=0.8.11'
......@@ -48,7 +48,7 @@ test_enpt:
test_styles:
stage: test
script:
- source /root/miniconda3/bin/activate ci_env
- source /root/mambaforge/bin/activate ci_env
- make lint
artifacts:
paths:
......@@ -62,7 +62,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
......@@ -71,8 +71,7 @@ test_urls:
test_enpt_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 enpt environment from environment_enpt.yml
......@@ -135,7 +134,7 @@ deploy_pypi:
dependencies:
- test_enpt
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
# copy some needed stuff to /root
COPY *.yml /root/
......@@ -6,15 +6,14 @@ COPY polymer-v4.13.tar.gz /root/
# update the ci_env environment (that already contains all packages installed via 'docker_pyenvs' repo)
RUN /bin/bash -i -c "\
source /root/miniconda3/bin/activate ; \
conda install -c conda-forge mamba ; \
mamba update -n base -c conda-forge conda;\
source /root/mambaforge/bin/activate ; \
mamba update -n base -c conda-forge --all;\
conda activate ci_env; \
mamba env update -n ci_env -f /root/environment_enpt.yml"
# install Polymer into the ci_env environment
RUN /bin/bash -i -c "\
source /root/miniconda3/bin/activate ci_env; \
source /root/mambaforge/bin/activate ci_env; \
cd /root/ ; \
tar -zxvf polymer-*.tar.gz ; \
cd polymer-v4.13 ;\
......
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