forked from python-consul/python-consul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (45 loc) · 1.18 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
language: python
python:
- 2.6
- 2.7
- pypy-5.3.1
- 3.5
- 3.6
install:
- pip install tox
- pip install tox-travis
script:
- tox
jobs:
include:
- stage: flake
python: 3.6
script:
- tox -e flake8
- stage: sonar
dist: trusty
language: java
addons:
sonarcloud:
organization: "python-consul"
token:
secure: "lTtnh4/Tm/5vRckFzh5uF/HotBO+lWX/Vx41hc+wS5eFQe9WTsWZlY/hhKtL24rHBdUr3JVBDTBhEtDR5FAv/XwlX2kAOjqcuxOhW0eQP+1NyuMklbV7zGup3T8aNY1vHh0k0mhO5kUwHw3iNLKxO73BvP7/tlrLg+DTeFLtgx8="
branches:
- master
install: ignore
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sonar-scanner; fi'
branches:
only:
- master
- stage: deploy
python: 3.6
script: ignore
deploy:
provider: pypi
user: python-consul-admin
password:
secure: "HmLBvgjd5WB8nNBI/KbgvVPKUy1Wsb4TwLL2aEA4IrZHW0/8JHbwwo71zEX+ep+CvqCRTZDMfXtWbckpAJUhjGuqeFqiQGzxwU+SffJsdqy4mVl8NSUJ3WkWItYhPAhnbPYLTOg3QPAEY8KW0RrW1WW3X4wpwEe1+F+o3BDIvvw="
distributions: "sdist bdist_wheel"
on:
tags: true