-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
56 lines (50 loc) · 1.36 KB
/
.gitlab-ci.yml
File metadata and controls
56 lines (50 loc) · 1.36 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
stages:
- test
- publish
variables:
DOCKER_HOST: tcp://pio-gitlab-runner-components-dind.gitlab-runner-components.svc.cluster.local:2375
DOCKER_TLS_CERTDIR: ""
PIO_TAG: ${CI_COMMIT_REF_SLUG}
.base:
image: python:3.6.8-stretch
tags: ["kube", "ire1-c1"]
test-lint:
stage: test
extends: .base
script:
- pip install pycodestyle pyflakes
- pycodestyle --config pep8lint.cfg --statistics --format=pylint *.py previsionio/*.py utests/*.py
- pyflakes *.py previsionio/*.py utests/*.py
allow_failure: true
# test-image:
# stage: test
# extends: .base
# interruptible: true
# script:
# - pip install -U pip
# - pip install -r requirements.txt
# - pip install -r utests/requirements.txt
# - cd utests/
# - pytest -sv
# timeout: 3h
# allow_failure: true
build:
stage: publish
extends: .base
script:
- pip install versioneer twine
- python setup.py sdist bdist_wheel
- twine upload --repository-url $PYPI_URL -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/*
- curl -L --output /usr/local/bin/release-cli "https://release-cli-downloads.s3.amazonaws.com/latest/release-cli-linux-amd64"; chmod +x /usr/local/bin/release-cli
only:
- tags
release:
tag_name: $CI_COMMIT_TAG
description: "new version"
test-publish:
stage: publish
extends: .base
script:
- pip install previsionio
only:
- tags