forked from severb/graypy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
103 lines (95 loc) · 2.15 KB
/
.travis.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
language: python
stages:
- lint
- test
- build
- deploy
before_install:
- pip install -U pip setuptools
- pip install codecov
install:
- pip install .
before_script:
- bash tests/config/start_local_graylog_server.sh
script:
- python setup.py test
after_script:
- bash tests/config/stop_local_graylog_server.sh
after_success:
- codecov
jobs:
include:
- python: 2.7
- python: 3.4
- python: 3.5
- python: 3.6
- python: 3.7
dist: xenial
- python: "pypy2.7-5.10.0"
- python: "pypy3.5-5.10.0"
- stage: lint
name: "black"
python:
- 3.6
before_install:
- pip install black
before_script: skip
script:
- black --check setup.py tests graypy
after_script: skip
- name: "pylint"
python:
- 3.6
before_script: skip
script:
- python setup.py lint || exit $(($? & 35))
after_script: skip
- name: "twine check"
python:
- 3.6
before_install:
- pip install docutils twine
before_script:
- python setup.py sdist
script:
- twine check dist/*
after_script: skip
- stage: build
name: "sdist"
python:
- 3.6
before_script: skip
script:
- python setup.py sdist
after_script: skip
- name: "bdist_wheel"
python:
- 3.6
install:
- pip install . wheel
before_script: skip
script:
- python setup.py bdist_wheel
after_script: skip
- name: "sphinx docs"
python:
- 3.6
install:
- pip install .[docs,amqp]
before_script: skip
script:
- sphinx-build docs/ build/
after_script: skip
- stage: deploy
deploy:
python:
- 3.6
provider: pypi
user: nklapste
password:
secure: Ryu87EzCW+k/quo2yC05cejU29zo9Xwlv9f2zxwMhCDRwMGt4GCSJ4zR7GXvYT0B5H6S+Y+gCxTmSSA53V1aRvCX0A42i6P9jef2yWR34aYe0+lmYwwW1wNKo/SLD1x5cXw59m5pcVGPvAVY9aQ88DwR9gn6aMr76A6LJet/ykY=
on:
tags: true
branch: master
repo: severb/graypy
distributions: "sdist bdist_wheel"