This repository has been archived on 2024-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
gitlabreleaseuploader/.gitlab-ci.yml

30 lines
905 B
YAML
Raw Permalink Normal View History

2019-05-30 14:35:35 +02:00
stages:
- check
- release
build:
stage: check
image: registry.gitlab.com/wolutator/base-build-env:latest
tags:
- hottis
- linux
- docker
script:
2019-05-30 14:59:02 +02:00
- for I in *.py; do python -m py_compile $I; done
- for I in *.py; do python -m pycodestyle --max-line-length=120 $I; done
2019-05-30 14:35:35 +02:00
release:
stage: release
image: registry.gitlab.com/wolutator/base-build-env
tags:
- hottis
- linux
- docker
only:
- release
2019-05-30 14:35:35 +02:00
script:
2019-07-16 15:32:20 +02:00
- zip GitlabReleaseTool.zip gitlabreleaseuploader.py deleterelease.py
2019-05-30 14:35:35 +02:00
- python gitlabreleaseuploader.py -p $PRIVATE_TOKEN -i $CI_PROJECT_ID -u $CI_PROJECT_URL
2019-07-16 15:32:20 +02:00
-f GitlabReleaseTool.zip -F info.json -T $CI_COMMIT_REF_NAME
2019-05-30 14:35:35 +02:00