-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
36 lines (32 loc) · 1.27 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
language: python
python:
- 3.8
- 3.7
install:
- pip install -U tox-travis
- pip install -r requirements.txt
- pip install -r requirements_dev.txt
script:
# lint
- flake8 centra_py_client
# test
- tox
- pytest -v
before_deploy:
- git checkout main # travis is on detached head
- bump2version --verbose minor
deploy:
provider: pypi
username: "__token__"
distributions: "sdist bdist_wheel"
password:
secure: cU97I0BBcdCRdSJDtRXkhSfoldrgqE5uGL3g7Oiofb7dK5v8K+uLbfYOJ7g/SPwMn8EoKCnuk2jBcDvXRh3J20YuZqFH4/k3LblgyKRt/GuqXRtcBelyvrsDgzdqcx22c2wcQ9Z1dSz+o8Dt03EpiPrXHQMtF8AO+R4jWy33vUcqIqgkoxVakvnDyZsVSFUPkYYgdg0yg14IqH6wd5TxjoVevcpR67wC5SpFeCJarhsNnO+i5zMaub1yJ6xv2BeiycmjHePgGw4avrmdT5RmOhtbIvwFOqMru7a0PYyq64g47Pd6hDW4Iw//LjQwY0OcCZJ7L8vPOWsxvAkN1qVR0PhZi5vlbqlbGEHlrIdVbBtWoUXiHQTi7b3q9oygs6bTtgWbz7LW7G6/teZpZ7KePnU2aXAc8tjA0BdxJIqhZVe2zE5k1B8wkA+mV9L+oRRaNaM6ZjWFeiyUOZPpx7dgNkhrfAnOGC15DOBo8bcjm0QlvCTG0ZCF7Xmy8fjyvIZ+Xhrk+jgFjzBg8xGfIFfjCt4XbF49LOufB5dR06sGehKgp3bkZSSvu8rrb3yPtW8ERknKYfzHsFWK3CwFevJ7VjGm1eDZu3h1Q7JQsRPADjT4AuulDXz40sBfzeSs7Z9pTe9wz3UR3lp63xC7gdzoHEuzQ86SbU5gh+sf2H0P9mI=
on:
branch: main
skip_existing: true
after_deploy:
- git log -n 3 --decorate
- git status
- git diff HEAD HEAD~1
- git push origin main
- git push --tags