mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-09-27 19:59:02 +00:00
1224313e7c
We were affected by the following bug when installing pyinstaller in CI: https://github.com/pyinstaller/pyinstaller/issues/4006 https://github.com/pypa/pip/issues/6163 As a consequence, pip is upgraded in CI. Also, twine is now part of dev requirements.
79 lines
1.3 KiB
YAML
79 lines
1.3 KiB
YAML
stages:
|
|
- test
|
|
- build
|
|
- deploy:images
|
|
- deploy:pypi
|
|
- deploy:docs
|
|
|
|
test:
|
|
script:
|
|
- apk add --no-cache make gcc musl-dev yaml-dev
|
|
- python setup.py install
|
|
- make ci-install-python-requirements
|
|
- make test
|
|
|
|
build:images:
|
|
script:
|
|
- apk add --no-cache docker make
|
|
- python setup.py install
|
|
- make ci-build-images
|
|
tags:
|
|
- private
|
|
stage: build
|
|
|
|
build:docs:
|
|
script:
|
|
- apk add --no-cache make
|
|
- pip install -r requirements/docs.txt
|
|
- cd docs && make
|
|
artifacts:
|
|
paths:
|
|
- docs/_build/html
|
|
stage: build
|
|
|
|
build:pypi:
|
|
script:
|
|
- apk add --no-cache make
|
|
- make ci-install-python-requirements
|
|
- make package
|
|
artifacts:
|
|
paths:
|
|
- dist/
|
|
stage: build
|
|
|
|
deploy:images:
|
|
script:
|
|
- apk add --no-cache docker make
|
|
- python setup.py install
|
|
- make ci-push-images
|
|
only:
|
|
- tags
|
|
tags:
|
|
- private
|
|
stage: deploy:images
|
|
|
|
deploy:pypi:
|
|
script:
|
|
- apk add --no-cache make
|
|
- make ci-install-python-requirements
|
|
- make ci-pypi
|
|
dependencies:
|
|
- build:pypi
|
|
only:
|
|
- tags
|
|
tags:
|
|
- private
|
|
stage: deploy:pypi
|
|
|
|
deploy:docs:
|
|
dependencies:
|
|
- build:docs
|
|
script:
|
|
- rm -rf /var/www/docs.tutor.overhang.io
|
|
- mv docs/_build/html/ /var/www/docs.tutor.overhang.io
|
|
only:
|
|
- tags
|
|
tags:
|
|
- private
|
|
stage: deploy:docs
|