-
Notifications
You must be signed in to change notification settings - Fork 3
/
circle.yml
40 lines (35 loc) · 883 Bytes
/
circle.yml
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
machine:
python:
version: 3.5.0
general:
artifacts:
- .tox/py3/junit.xml
- .tox/lint/flake8.txt
- coverage.xml
checkout:
post:
- git fetch --tags && git tag
dependencies:
override:
- pip install --upgrade pip
- pip install --upgrade tox
- pip install --upgrade coveralls
test:
override:
- tox -r
post:
- coveralls
- mkdir -p $CIRCLE_TEST_REPORTS/dankbot
- cp .tox/py3/junit.xml $CIRCLE_TEST_REPORTS/dankbot
- cp .tox/lint/flake8.txt $CIRCLE_TEST_REPORTS/dankbot
- cp -R htmlcov $CIRCLE_TEST_REPORTS/dankbot
- cp coverage.xml $CIRCLE_TEST_REPORTS/dankbot
deployment:
release:
tag: /[0-9]+(\.[0-9]+)*/
owner: DankCity
commands:
- pip install twine
- pip install wheel
- python setup.py sdist bdist_wheel
- twine upload --config-file ./.pypirc -r pypi -p $PYPI_PW dist/*