Commit 867f5d3d authored by Thomas Dowrick's avatar Thomas Dowrick
Browse files

Restore full gitlab-ci file

parent 02a2293d
Pipeline #1452 canceled with stages
in 23 minutes and 22 seconds
......@@ -4,7 +4,59 @@ variables:
PYPI_PASS: SECURE
stages:
- build
- installer
- test
- deploy
build docs:
stage: build
script:
- tox -e docs
tags:
- shared-linux
artifacts:
paths:
- doc/
expire_in: 1 week
build linux installer:
stage: build
script:
- tox -e installer
tags:
- shared-linux
artifacts:
paths:
- dist/
expire_in: 1 week
build mac installer:
stage: build
script:
- tox -e installer
tags:
- shared-mac
artifacts:
paths:
- dist/
expire_in: 1 week
build windows installer:
stage: build
script:
- tox -e installer
tags:
- shared-win, gui
artifacts:
paths:
- dist/
expire_in: 1 week
test Linux:
stage: test
variables:
......@@ -13,7 +65,6 @@ test Linux:
script:
- echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}"
- echo "DISPLAY=${DISPLAY}"
- echo "GITLAB_CI=${GITLAB_CI}"
- tox
tags:
- shared-linux, gui
......@@ -33,3 +84,64 @@ test Windows:
- tox
tags:
- shared-win
deploy docs to staging:
stage: deploy
script:
# Note: the group/username directory must already exist on the server before calling this command
- rsync -avz -e'ssh -v' --numeric-ids --delete doc/build/html/* staging_docs_rsync:WEISS/SoftwareRepositories/SNAPPY/scikit-surgeryARDavinci 2>&1
tags:
- docs-staging
environment:
name: staging
url: http://weisslab-lin.cs.ucl.ac.uk/staging/WEISS/SoftwareRepositories/SNAPPY/scikit-surgeryARDavinci
only:
- master
dependencies:
- build docs
deploy docs to production:
stage: deploy
script:
# Note: the group/username directory must already exist on the server before calling this command
- rsync -avz -e'ssh -v' --numeric-ids --delete doc/build/html/* production_docs_rsync:WEISS/SoftwareRepositories/SNAPPY/scikit-surgeryARDavinci 2>&1
tags:
- docs-production
environment:
name: production
only:
- public
dependencies:
- build docs
deploy pip to PyPI:
stage: deploy
when: manual
only:
- tags
environment:
name: PyPI
url: https://pypi.python.org/pypi/scikit-surgeryARDavinci
tags:
- pip-production
artifacts:
paths:
- dist/
script:
# Install packages required to build/publish
# remove any previous distribution files
- pip install wheel twine setuptools
- rm -rf dist
# bundle installer
- python setup.py bdist_wheel
# Upload to pypi
- twine upload --repository pypi dist/* --username $PYPI_USER --password $PYPI_PASS
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