Commit 595acfa6 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Revised .gitlab-ci.yml. Updated installation instructions (python is now...

Revised .gitlab-ci.yml. Updated installation instructions (python is now installed from conda-forge channel - fixes issue #35

).
Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent b1c5e6e4
Pipeline #8177 passed with stages
in 8 minutes and 18 seconds
before_script:
- git lfs pull
- mkdir -p public/images/
- cp -r docs/images/* public/images/
stages:
......@@ -13,12 +11,12 @@ stages:
test_arosics:
stage: test
script:
- source /root/miniconda3/bin/activate
- source activate ci_env
- export GDAL_DATA=/root/miniconda3/envs/ci_env/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- source /root/miniconda3/bin/activate ci_env
- pip install "py_tools_ds>=0.14.27" # FIXME remove as soon as docker runner has been updated
# run tests
- make nosetests
# create the docs
- pip install sphinx_rtd_theme # Read-the-docs theme for SPHINX documentation
- pip install sphinx-autodoc-typehints
......@@ -35,11 +33,7 @@ test_arosics:
test_styles:
stage: test
script:
- source /root/miniconda3/bin/activate
- source activate ci_env
- export GDAL_DATA=/root/miniconda3/envs/ci_env/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
- source /root/miniconda3/bin/activate ci_env
- make lint
artifacts:
paths:
......@@ -56,7 +50,7 @@ test_arosics_install:
# update conda and python
- conda update -n base -c defaults conda
# - conda update -c conda-forge python
# - conda update -c conda-forge python
# create arosics environment
- conda create -y -q -c conda-forge --name arosics_testinstall python=3
......@@ -90,13 +84,17 @@ pages: # this job must be called 'pages' to advise GitLab to upload content to
- mkdir -p public/images/
- mkdir -p public/coverage
- mkdir -p public/nosetests_reports
# Copy over the docs
- cp -r docs/_build/html/* public/doc/
- cp -r docs/images/* public/images/
# Copy over the coverage reports
- cp -r htmlcov/* public/coverage/
# Copy over the nosetests reports
- cp nosetests.* public/nosetests_reports/
# Check if everything is working great
- ls -al public
- ls -al public/doc
......@@ -116,8 +114,7 @@ deploy_pypi:
dependencies:
- test_arosics
script:
- source /root/miniconda3/bin/activate
- source activate ci_env
- source /root/miniconda3/bin/activate ci_env
- pip install -U twine
- python setup.py sdist
- twine upload dist/* # requires creds as environment variables
......
......@@ -12,7 +12,7 @@ Using conda_, the recommended approach is:
.. code-block:: bash
$ conda create --name arosics python=3
$ conda create -c conda-forge --name arosics python=3
$ source activate arosics
......
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