-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
36 lines (33 loc) · 760 Bytes
/
.gitlab-ci.yml
File metadata and controls
36 lines (33 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
stages:
- test
- bump_and_tag
- publish
test:
stage: test
image: python:3.5
script:
- pip install pipenv
- pipenv install --dev
- pipenv run coverage run -m unittest discover
- pipenv run coverage report
coverage: '/TOTAL.*\s+(\d+%)$/'
bump_and_tag:
stage: bump_and_tag
image: python:3.5
only:
- master
script:
- pip install pipenv
- pipenv install --dev
- pipenv run ./scarface_utils/common/bump_version.py
push:pypi:
stage: publish
image: python:3.5
only:
- tags
script:
- pip install pipenv
- pipenv install
- pipenv run python setup.py sdist bdist bdist_wheel
# Upload to artifactory to the $ARTIFACTORY_PYPI_PUSH_REPOSITORY repository:
- twine upload -r arti dist/*