2019-06-23 15:01:28 +00:00
|
|
|
stages:
|
2019-10-09 10:31:47 +00:00
|
|
|
- test
|
2019-06-23 15:01:28 +00:00
|
|
|
- build
|
|
|
|
- deploy:images
|
|
|
|
- deploy:pypi
|
2019-06-23 17:56:15 +00:00
|
|
|
- deploy:docs
|
2019-06-23 15:01:28 +00:00
|
|
|
|
2019-10-09 10:31:47 +00:00
|
|
|
test:
|
|
|
|
script:
|
2019-10-09 11:38:17 +00:00
|
|
|
- apk add --no-cache make
|
|
|
|
- make ci-install-alpine-requirements
|
2020-04-25 22:24:45 +00:00
|
|
|
- pip install .
|
2019-10-09 10:59:23 +00:00
|
|
|
- make ci-install-python-requirements
|
2019-10-09 10:31:47 +00:00
|
|
|
- make test
|
|
|
|
|
2019-06-23 15:01:28 +00:00
|
|
|
build:images:
|
|
|
|
script:
|
2019-10-09 11:38:17 +00:00
|
|
|
- apk add --no-cache make
|
|
|
|
- make ci-install-alpine-requirements
|
2020-04-25 22:24:45 +00:00
|
|
|
- pip install .
|
2019-06-23 15:01:28 +00:00
|
|
|
- make ci-build-images
|
|
|
|
tags:
|
|
|
|
- private
|
|
|
|
stage: build
|
|
|
|
|
|
|
|
build:docs:
|
|
|
|
script:
|
|
|
|
- apk add --no-cache make
|
2019-10-09 11:38:17 +00:00
|
|
|
- make ci-install-alpine-requirements
|
2019-06-23 15:01:28 +00:00
|
|
|
- pip install -r requirements/docs.txt
|
2020-01-10 14:30:09 +00:00
|
|
|
- make docs
|
2019-06-23 15:01:28 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- docs/_build/html
|
|
|
|
stage: build
|
|
|
|
|
|
|
|
build:pypi:
|
|
|
|
script:
|
|
|
|
- apk add --no-cache make
|
2019-10-09 11:38:17 +00:00
|
|
|
- make ci-install-alpine-requirements
|
2019-10-09 10:59:23 +00:00
|
|
|
- make ci-install-python-requirements
|
2019-06-23 15:01:28 +00:00
|
|
|
- make package
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- dist/
|
|
|
|
stage: build
|
|
|
|
|
|
|
|
deploy:images:
|
|
|
|
script:
|
2019-10-09 11:38:17 +00:00
|
|
|
- apk add --no-cache make
|
|
|
|
- make ci-install-alpine-requirements
|
2020-04-25 22:24:45 +00:00
|
|
|
- pip install .
|
2019-06-23 15:01:28 +00:00
|
|
|
- make ci-push-images
|
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
tags:
|
|
|
|
- private
|
|
|
|
stage: deploy:images
|
|
|
|
|
|
|
|
deploy:pypi:
|
|
|
|
script:
|
|
|
|
- apk add --no-cache make
|
2019-10-09 11:38:17 +00:00
|
|
|
- make ci-install-alpine-requirements
|
2019-10-09 10:59:23 +00:00
|
|
|
- make ci-install-python-requirements
|
2019-06-23 15:01:28 +00:00
|
|
|
- make ci-pypi
|
|
|
|
dependencies:
|
|
|
|
- build:pypi
|
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
tags:
|
|
|
|
- private
|
|
|
|
stage: deploy:pypi
|
|
|
|
|
|
|
|
deploy:docs:
|
|
|
|
dependencies:
|
|
|
|
- build:docs
|
|
|
|
script:
|
2019-06-24 10:49:16 +00:00
|
|
|
- rm -rf /var/www/docs.tutor.overhang.io
|
|
|
|
- mv docs/_build/html/ /var/www/docs.tutor.overhang.io
|
2019-06-23 15:01:28 +00:00
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
tags:
|
|
|
|
- private
|
|
|
|
stage: deploy:docs
|