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

First setup for Anaconda CD.

parent 1d0b56b4
Pipeline #721 failed with stages
in 55 seconds
......@@ -10,8 +10,7 @@ variables:
stages:
- test
- deploy_pages
- deploy_to_pypi
- deploy
- cleanup
......@@ -29,8 +28,8 @@ test_py_tools_ds:
- docs/_build/html/
pages:
stage: deploy_pages
deploy_pages:
stage: deploy
dependencies:
- test_py_tools_ds
script:
......@@ -48,7 +47,7 @@ pages:
deploy_pypi:
stage: deploy_to_pypi
stage: deploy
dependencies:
- test_py_tools_ds
script: # Configure the PyPI credentials, then push the package, and cleanup the creds.
......@@ -65,6 +64,27 @@ deploy_pypi:
- dev
deploy_anaconda:
stage: deploy
dependencies:
- test_py_tools_ds
#- deploy_pypi
script:
- source /root/anaconda3/bin/activate
- conda skeleton pypi py_tools_ds # create recipe
- conda config --set anaconda_upload yes # enable auto-upload to anaconda
- anaconda login --username ${ANACONDA_USER} --password ${ANACONDA_PASSWORD}
- conda build -c conda-forge py_tools_ds # --output returns package name
#- conda convert --platform all /home/jsmith/miniconda/conda-bld/linux-64/pyinstrument-0.13.1-py27_0.tar.bz2
#-o outputdir/
- anaconda logout
only:
- feature/conda_deployment
#- /^v\d+\.\d+\.\d+([abc]\d*)?$/ # PEP-440 compliant version (tags)
except:
- dev
cleanup_pypirc:
stage: cleanup
when: always # this is important; run even if preceding stages failed.
......
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