Commit bad3a18d authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

CI setup now updates ci_env environment installed via docker_pyenvs instead of...

CI setup now updates ci_env environment installed via docker_pyenvs instead of creating an independent environment.
parent a0f74d19
Pipeline #3136 failed with stages
in 1 minute and 18 seconds
......@@ -21,8 +21,8 @@ test_py_tools_ds:
stage: test
script:
- source /root/miniconda3/bin/activate
- source activate py_tools_ds
- export GDAL_DATA=/root/miniconda3/envs/py_tools_ds/share/gdal
- source activate ci_env
- export GDAL_DATA=/root/miniconda3/envs/ci_env/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- make nosetests
- make docs
......@@ -39,8 +39,8 @@ test_styles:
stage: test
script:
- source /root/miniconda3/bin/activate
- source activate py_tools_ds
- export GDAL_DATA=/root/miniconda3/envs/py_tools_ds/share/gdal
- source activate ci_env
- export GDAL_DATA=/root/miniconda3/envs/ci_env/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- make lint
artifacts:
......@@ -59,7 +59,8 @@ test_py_tools_ds_install:
- source activate py_tools_ds_testinstall
# resolve some requirements with conda
- conda install --yes -q -c conda-forge numpy gdal scikit-image pyproj rasterio shapely geopandas
- conda install --yes -q -c conda-forge kealib # fix for libkea.so.1.4.7: cannot open shared object file: No such file or directory
- conda install --yes -q -c conda-forge libgdal ncurses # Fix for libgdal installed from defaults channel causing libkea.so.1.4.7: cannot open shared object file: No such file or directory
# - conda install --yes -q -c conda-forge kealib # fix for libkea.so.1.4.7: cannot open shared object file: No such file or directory
# run installer
- python setup.py install
# test if its importable
......
......@@ -5,6 +5,8 @@ RUN yum update -y && \
# 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 env update -f /root/environment_py_tools_ds.yml"
source activate ci_env; \
conda env update -n ci_env -f /root/environment_py_tools_ds.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