Commit 15368624 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 2ea54127
Pipeline #27286 failed with stages
in 30 minutes and 37 seconds
......@@ -42,7 +42,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
......@@ -51,24 +51,20 @@ test_urls:
test_pyrsr_install:
stage: test
script:
- source /root/miniconda3/bin/activate
- conda update -n base -c conda-forge conda
# - conda update -c conda-forge python
- conda create -y -q -c conda-forge --name pyrsr_testinstall python=3
- conda activate pyrsr_testinstall
# resolve some requirements with conda
- conda install --y -q -c conda-forge numpy matplotlib pandas
- source /root/mambaforge/bin/activate
- mamba update -n base -c conda-forge --all
# run installer
- python setup.py install
# create pyrsr environment from environment_pyrsr.yml
- mamba env create --name pyrsr_test -f tests/CI_docker/context/environment_pyrsr.yml
- conda activate pyrsr_test
# test if its importable
# install pyrsr
- pip install -e .
- cd ..
- pwd
- ls
# test if its importable
- python -c "import pyrsr; print(pyrsr)"
- python -c "from pyrsr import RSR"
only:
......@@ -115,7 +111,7 @@ deploy_pypi:
dependencies:
- test_pyrsr
script:
- source /root/miniconda3/bin/activate
- source /root/mambaforge/bin/activate
- conda activate ci_env
- pip install -U twine
- python setup.py sdist
......
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/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_pyrsr.yml"
mamba env update -n ci_env -f /root/environment_pyrsr.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