Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • open-source/gitlab-ci-templates
1 result
Show changes
Commits on Source (3)
......@@ -24,7 +24,7 @@
stages:
# put your testing/linting stages here before
# for build-debian-package.yml
- build-debian
- build-debian-package
- upload-deb-to-heptapod
# for build-docker-image.yml
# for release-on-heptapod.yml
......@@ -59,3 +59,24 @@
You can also find the official documentation [here](https://docs.gitlab.com/ee/ci/yaml/includes.html),
and some examples [here](https://docs.gitlab.com/ee/ci/yaml/README.html#include).
## Description of all the jobs
| Job filename | Stage | Purpose |
| --- | --- | --- |
| [no-duplicated-ci-pipelines.yml](templates/no-duplicated-ci-pipelines.yml) | None | avoid running duplicate pipelines for both topic head and MR |
| [lint/black.yml](templates/lint/black.yml) | lint | run tox -e black |
| [lint/check-manifest.yml](templates/lint/check-manifest.yml) | lint | run tox -e check-manifest |
| [lint/flake8.yml](templates/lint/flake8.yml) | lint | run tox -e flake8 |
| [lint/mypy.yml](templates/lint/mypy.yml) | lint | run tox -e mypy |
| [lint/safety.yml](templates/lint/safety.yml) | lint | run tox -e safety |
| [lint/yamllint.yml](templates/lint/yamllint.yml) | lint | run tox -e yamllint |
| [tests/py27.yml](templates/tests/py27.yml) | tests | run tox -e py27 |
| [tests/py3.yml](templates/tests/py3.yml) | tests | run tox -e py3 |
| [build-debian-package.yml](templates/build-debian-package.yml) | build-debian-package, upload-deb-to-heptapod | build and upload debian packages to heptapod |
| [build-docker-image.yml](templates/build-docker-image.yml) | release | build two docker images and push them to heptapod registry (the "latest" is added when MR is merged) |
| [create-release-on-heptapod.yml](templates/create-release-on-heptapod.yml) | release | create a release on heptapod on new tags |
| [create-release-on-heptapod-including-debian-package.yml](templates/create-release-on-heptapod-including-debian-package.yml) | release | create a release on heptapod on new tags and link the debian package to it |
| [upload-to-pypi.yml](templates/upload-to-pypi.yml) | publish | upload the package to pipy on new tag using tox -e pypi-publish |
| [upload-python-package-to-heptapod.yml](templates/upload-python-package-to-heptapod.yml) | publish | upload the package to heptapod registry on new tag |
upload-python-package-to-heptapod:
stage: publish
image: python
rules:
- if: '$CI_MERGE_REQUEST_ID'
when: never
- if: '$CI_COMMIT_TAG'
when: on_success
before_script:
- pip install twine
script:
- python setup.py sdist bdist_wheel
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url https://forge.extranet.logilab.fr/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/*