Skip to content
Snippets Groups Projects
Commit cc4a5f71 authored by nimrod's avatar nimrod
Browse files

CI templates.

parent f26fd2ab
No related branches found
No related tags found
No related merge requests found
--- ---
stages: include:
- test - project: shore/ci-templates
- release file: templates/pre-commit.yml
- project: shore/ci-templates
pre-commit: file: templates/python.yml
stage: test - project: shore/ci-templates
image: adarnimrod/ci-images:pre-commit file: templates/gitlab-release.yml
variables: &variables
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
script:
- pre-commit run -a
cache: &cache
paths:
- .cache/
upload:
stage: release
image: python:3.6
before_script:
- pip install twine
- mv "$pypirc" $HOME/.pypirc
script:
- python setup.py bdist_wheel
- twine upload dist/*
variables: *variables
cache: *cache
rules:
- if: $CI_COMMIT_TAG
artifacts:
paths:
- dist/*.whl
release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
script:
- !!str true
rules:
- if: $CI_COMMIT_TAG
release:
name: Release $CI_COMMIT_TAG
tag_name: $CI_COMMIT_TAG
ref: $CI_COMMIT_TAG
description: Release $CI_COMMIT_TAG
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment