Commit c511dbf6 authored by Daniel Scheffler's avatar Daniel Scheffler

CI Python environment is now separate from base env. Added defaults channels...

CI Python environment is now separate from base env. Added defaults channels below conda-forge in environment.yml
parent 566f1b2e
Pipeline #3118 failed with stages
in 1 minute and 32 seconds
......@@ -41,7 +41,7 @@ test_styles:
- source /root/miniconda3/bin/activate
- export GDAL_DATA=/root/miniconda3/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- pip install "pycodestyle>=2.0.0,!=2.4.0" # TODO remove as soon as docker runner is recreated
# - pip install "pycodestyle>=2.0.0,!=2.4.0" # TODO remove as soon as docker runner is recreated
- make lint
artifacts:
paths:
......@@ -54,8 +54,8 @@ test_styles:
test_geoarray_install:
stage: test
script:
- source /root/miniconda3/bin/activate
- export GDAL_DATA=/root/miniconda3/share/gdal
- source /root/miniconda3/bin/activate geoarray
- export GDAL_DATA=/root/miniconda3/envs/geoarray/share/gdal
- conda create -y -q --name geoarray python=3
- source activate geoarray
# resolve some requirements with conda
......@@ -107,7 +107,7 @@ deploy_pypi:
dependencies:
- test_geoarray
script: # Configure the PyPI credentials, then push the package, and cleanup the creds.
- source /root/miniconda3/bin/activate
- source /root/miniconda3/bin/activate geoarray
- printf "[distutils]\nindex-servers =\n pypi\n\n" >> ~/.pypirc
- printf "[pypi]\n""repository:"" https://upload.pypi.org/legacy/\n" >> ~/.pypirc
- printf "username= ${PYPI_USER}\n" >> ~/.pypirc
......
......@@ -3,6 +3,7 @@ name: geoarray
channels: &id1
- http://conda.anaconda.org/ioam # only for holoviews
- http://conda.anaconda.org/conda-forge
- defaults
dependencies:
- python=3.*.*
......
......@@ -5,4 +5,4 @@ COPY *.yml /root/
RUN /bin/bash -i -c "\
source /root/miniconda3/bin/activate ; \
conda env update -n root -f /root/environment_geoarray.yml"
conda env update -n /root/environment_geoarray.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