Commit 079ba862 authored by André Anjos's avatar André Anjos 💬

[ci] Implement beta deployment and potential pypi upload

parent 8ffe05d3
Pipeline #25482 failed
......@@ -11,6 +11,8 @@ variables:
# Definition of our build pipeline order
stages:
- build
- deploy
- pypi
# Build targets
......@@ -57,4 +59,53 @@ build_linux_36:
artifacts:
expire_in: 1 week
paths:
- _ci/
- dist/*.zip
- sphinx
# Deploy targets
.deploy_template: &deploy_job
stage: deploy
before_script:
- ./_ci/install.sh _ci master #updates ci support scripts
script:
- ./_ci/deploy.sh
dependencies:
- build_linux_36
- build_macosx_36
tags:
- deployer
deploy_beta:
<<: *deploy_job
environment: beta
only:
- master
deploy_stable:
<<: *deploy_job
environment: stable
only:
- /^v\d+\.\d+\.\d+([abc]\d*)?$/ # PEP-440 compliant version (tags)
except:
- branches
pypi:
stage: pypi
environment: pypi
only:
- /^v\d+\.\d+\.\d+([abc]\d*)?$/ # PEP-440 compliant version (tags)
except:
- branches
before_script:
- ./_ci/install.sh _ci master #updates ci support scripts
script:
- ./_ci/pypi.sh
dependencies:
- build_linux_36
tags:
- deployer
......@@ -29,6 +29,9 @@ unset COVERAGE_FILE
run_cmd ./bin/coverage combine .coverage.django .coverage.cmdline
run_cmd ./bin/coverage report
run_cmd ./bin/sphinx-apidoc --separate -d 2 --output=doc/api ${CI_PROJECT_NAMESPACE} beat/web/*/migrations beat/web/*/tests
run_cmd ./bin/sphinx-build doc/api html/api
run_cmd ./bin/sphinx-build doc/admin html/admin
run_cmd ./bin/sphinx-build doc/user html/user
run_cmd ./bin/sphinx-build doc/api sphinx/api
run_cmd ./bin/sphinx-build doc/admin sphinx/admin
run_cmd ./bin/sphinx-build doc/user sphinx/user
# Builds a zip file that can be uploaded to PyPI
python setup.py sdist --formats=zip
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