Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
EnMAP
GFZ_Tools_EnMAP_BOX
enpt_enmapboxapp
Commits
afea1811
Commit
afea1811
authored
Sep 07, 2021
by
Daniel Scheffler
Browse files
CI now uses Mambaforge.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
d915d993
Pipeline
#27284
failed with stages
in 2 minutes and 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
afea1811
...
...
@@ -10,7 +10,7 @@ stages:
test_enpt_enmapboxapp
:
stage
:
test
script
:
-
source /root/m
iniconda3
/bin/activate ci_env
-
source /root/m
ambaforge
/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/m
iniconda3
/
-
export ANACONDA_ROOT=/root/m
ambaforge
/
-
export IS_ENPT_GUI_TEST=1
# run nosetests
...
...
@@ -48,7 +48,7 @@ test_enpt_enmapboxapp:
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
:
...
...
@@ -62,7 +62,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
...
...
@@ -71,12 +71,10 @@ test_urls:
test_enpt_enmapboxapp_install
:
stage
:
test
script
:
-
source /root/m
iniconda3
/bin/activate
-
source /root/m
ambaforge
/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/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/gitlab_CI_docker/context/enpt_enmapboxapp_ci.docker
View file @
afea1811
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/m
iniconda3
/bin/activate ci_env ;
\
source /root/m
ambaforge
/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/m
iniconda3
/bin/activate ;
\
source /root/m
ambaforge
/bin/activate ;
\
mamba create -n enpt -c conda-forge enpt ;
\
conda activate enpt ;
\
conda list"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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