Commit afea1811 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 d915d993
Pipeline #27284 failed with stages
in 2 minutes and 27 seconds
......@@ -10,7 +10,7 @@ stages:
test_enpt_enmapboxapp:
stage: test
script:
- source /root/miniconda3/bin/activate ci_env
- source /root/mambaforge/bin/activate ci_env
# install enpt_enmapboxapp, otherwise the executable scripts are not in place
- pip install -e .
......@@ -27,7 +27,7 @@ test_enpt_enmapboxapp:
# set environment variables
- export IS_CI_ENV=1 # to notify tests that they are running within a docker CI system
- export ANACONDA_ROOT=/root/miniconda3/
- export ANACONDA_ROOT=/root/mambaforge/
- export IS_ENPT_GUI_TEST=1
# run nosetests
......@@ -48,7 +48,7 @@ test_enpt_enmapboxapp:
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,12 +71,10 @@ test_urls:
test_enpt_enmapboxapp_install:
stage: test
script:
- source /root/miniconda3/bin/activate
- source /root/mambaforge/bin/activate
# update conda and python and update mamba
- conda update -n base -c conda-forge conda
# - conda update -c conda-forge python
- conda update -c conda-forge mamba
# update base environment
- mamba update -n base -c conda-forge --all
# create an environment containing qgis, enpt and the EnMAP-Box requirements
- mamba env create -f tests/gitlab_CI_docker/context/environment_enpt_enmapboxapp.yml
......@@ -148,7 +146,7 @@ deploy_pypi:
dependencies:
- test_enpt_enmapboxapp
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
# install Xvfb to be able to assign a DISPLAY for Qt tests
RUN yum install -y xorg-x11-server-Xvfb
......@@ -6,20 +6,11 @@ RUN yum install -y xorg-x11-server-Xvfb
# copy some needed stuff to /root
COPY *.yml /root/
# # update Miniconda
# ENV miniconda_dl 'Miniconda3-latest-Linux-x86_64.sh'
# RUN /bin/bash -i -c "\
# rm -rf /root/miniconda3 ; \
# wget https://repo.continuum.io/miniconda/$miniconda_dl -P /root/ ; \
# bash -i /root/$miniconda_dl -b ; \
# rm -f /root/$miniconda_dl"
# 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;\
conda install -c conda-forge mamba ; \
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_enmapboxapp.yml"
......@@ -28,7 +19,7 @@ COPY enmapbox /tmp/enmapbox
# install enmapbox (in pip development mode)
RUN bash -i -c "\
source /root/miniconda3/bin/activate ci_env ; \
source /root/mambaforge/bin/activate ci_env ; \
cd /tmp/enmapbox/ ; \
pip install -r https://bitbucket.org/hu-geomatics/enmap-box/raw/develop/requirements.txt ; \
pip install -e . ; \
......@@ -36,7 +27,7 @@ RUN bash -i -c "\
# install enpt (into separate conda environment)
RUN bash -i -c "\
source /root/miniconda3/bin/activate ; \
source /root/mambaforge/bin/activate ; \
mamba create -n enpt -c conda-forge enpt ; \
conda activate enpt ; \
conda list"
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