Commit 4d41b0ab authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Updated env settings within gitlab_ci.yml

parent 47a4d7fe
Pipeline #1547 passed with stages
in 1 minute and 2 seconds
...@@ -17,7 +17,8 @@ stages: ...@@ -17,7 +17,8 @@ stages:
test_py_tools_ds: test_py_tools_ds:
stage: test stage: test
script: script:
- source /root/miniconda3/envs/20171117_pyenv/bin/activate - source /root/miniconda3/bin/activate
- source activate 20171117_pyenv
- export GDAL_DATA=/root/miniconda3/envs/20171117_pyenv/share/gdal - export GDAL_DATA=/root/miniconda3/envs/20171117_pyenv/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later - export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- make nosetests - make nosetests
...@@ -34,7 +35,8 @@ test_py_tools_ds: ...@@ -34,7 +35,8 @@ test_py_tools_ds:
test_styles: test_styles:
stage: test stage: test
script: script:
- source /root/miniconda3/envs/20171117_pyenv/bin/activate - source /root/miniconda3/bin/activate
- source activate 20171117_pyenv
- export GDAL_DATA=/root/miniconda3/envs/20171117_pyenv/share/gdal - export GDAL_DATA=/root/miniconda3/envs/20171117_pyenv/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later - export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- make lint - make lint
...@@ -49,7 +51,8 @@ test_styles: ...@@ -49,7 +51,8 @@ test_styles:
test_py_tools_ds_install: test_py_tools_ds_install:
stage: test stage: test
script: script:
- source /root/miniconda3/envs/20171117_pyenv/bin/activate - source /root/miniconda3/bin/activate
- source activate 20171117_pyenv
- export GDAL_DATA=/root/miniconda3/envs/20171117_pyenv/share/gdal - export GDAL_DATA=/root/miniconda3/envs/20171117_pyenv/share/gdal
- conda create -y -q --name py_tools_ds python=3 - conda create -y -q --name py_tools_ds python=3
- source activate py_tools_ds - source activate py_tools_ds
...@@ -102,7 +105,7 @@ deploy_pypi: ...@@ -102,7 +105,7 @@ deploy_pypi:
dependencies: dependencies:
- test_py_tools_ds - test_py_tools_ds
script: # Configure the PyPI credentials, then push the package, and cleanup the creds. script: # Configure the PyPI credentials, then push the package, and cleanup the creds.
- source /root/miniconda3/envs/20171117_pyenv/bin/activate - source /root/miniconda3/bin/activate
- printf "[distutils]\nindex-servers =\n pypi\n\n" >> ~/.pypirc - printf "[distutils]\nindex-servers =\n pypi\n\n" >> ~/.pypirc
- printf "[pypi]\n""repository:"" https://upload.pypi.org/legacy/\n" >> ~/.pypirc - printf "[pypi]\n""repository:"" https://upload.pypi.org/legacy/\n" >> ~/.pypirc
- printf "username= ${PYPI_USER}\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