Commit 7d2f75d0 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Changed used environment within gitlab CI.

parent 5917ecf3
Pipeline #1545 failed with stages
in 47 seconds
......@@ -17,8 +17,8 @@ stages:
test_py_tools_ds:
stage: test
script:
- source /root/anaconda3/bin/activate
- export GDAL_DATA=/root/anaconda3/share/gdal
- source /root/miniconda3/envs/20171117_pyenv/bin/activate
- export GDAL_DATA=/root/miniconda3/envs/20171117_pyenv/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- make nosetests
- make docs
......@@ -34,8 +34,8 @@ test_py_tools_ds:
test_styles:
stage: test
script:
- source /root/anaconda3/bin/activate
- export GDAL_DATA=/root/anaconda3/share/gdal
- source /root/miniconda3/envs/20171117_pyenv/bin/activate
- export GDAL_DATA=/root/miniconda3/envs/20171117_pyenv/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- make lint
artifacts:
......@@ -49,8 +49,8 @@ test_styles:
test_py_tools_ds_install:
stage: test
script:
- source /root/anaconda3/bin/activate
- export GDAL_DATA=/root/anaconda3/share/gdal
- source /root/miniconda3/envs/20171117_pyenv/bin/activate
- export GDAL_DATA=/root/miniconda3/envs/20171117_pyenv/share/gdal
- conda create -y -q --name py_tools_ds python=3
- source activate py_tools_ds
# resolve some requirements with conda
......@@ -102,7 +102,7 @@ deploy_pypi:
dependencies:
- test_py_tools_ds
script: # Configure the PyPI credentials, then push the package, and cleanup the creds.
- source /root/anaconda3/bin/activate
- source /root/miniconda3/envs/20171117_pyenv/bin/activate
- 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
......
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