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

CI Python environment is not separate from the base env. Fixed mixed channels...

CI Python environment is not separate from the base env. Fixed mixed channels for gdal and libgdal causing libkea issue during CI.
parent 27269047
Pipeline #3126 failed with stages
in 10 minutes and 21 seconds
...@@ -21,7 +21,8 @@ test_py_tools_ds: ...@@ -21,7 +21,8 @@ test_py_tools_ds:
stage: test stage: test
script: script:
- source /root/miniconda3/bin/activate - source /root/miniconda3/bin/activate
- export GDAL_DATA=/root/miniconda3/share/gdal - source activate py_tools_ds
- export GDAL_DATA=/root/miniconda3/envs/py_tools_ds/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later - export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- make nosetests - make nosetests
- make docs - make docs
...@@ -38,7 +39,8 @@ test_styles: ...@@ -38,7 +39,8 @@ test_styles:
stage: test stage: test
script: script:
- source /root/miniconda3/bin/activate - source /root/miniconda3/bin/activate
- export GDAL_DATA=/root/miniconda3/share/gdal - source activate py_tools_ds
- export GDAL_DATA=/root/miniconda3/envs/py_tools_ds/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later - export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- make lint - make lint
artifacts: artifacts:
...@@ -53,9 +55,8 @@ test_py_tools_ds_install: ...@@ -53,9 +55,8 @@ test_py_tools_ds_install:
stage: test stage: test
script: script:
- source /root/miniconda3/bin/activate - source /root/miniconda3/bin/activate
- export GDAL_DATA=/root/miniconda3/share/gdal - conda create -y -q --name py_tools_ds_testinstall python=3
- conda create -y -q --name py_tools_ds python=3 - source activate py_tools_ds_testinstall
- source activate py_tools_ds
# resolve some requirements with conda # 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 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 kealib # fix for libkea.so.1.4.7: cannot open shared object file: No such file or directory
......
...@@ -9,7 +9,8 @@ dependencies: ...@@ -9,7 +9,8 @@ dependencies:
- pyqt - pyqt
- numpy - numpy
- gdal - gdal
- kealib # fix for libkea.so.1.4.7: cannot open shared object file: No such file or directory - conda-forge::libgdal # force to use conda-forge for libgdal to avoid package version incompatiblies due to mixed channels (libkea.so.1.4.7: cannot open shared object file: No such file or directory)
# - kealib # fix for libkea.so.1.4.7: cannot open shared object file: No such file or directory (not needed as long as libgdal and gdal are conda-forge packages)
- scikit-image - scikit-image
- rasterio - rasterio
- pyproj - pyproj
......
...@@ -7,4 +7,4 @@ COPY *.yml /root/ ...@@ -7,4 +7,4 @@ COPY *.yml /root/
RUN /bin/bash -i -c "\ RUN /bin/bash -i -c "\
source /root/miniconda3/bin/activate ; \ source /root/miniconda3/bin/activate ; \
conda env update -n root -f /root/environment_py_tools_ds.yml" conda env update -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