forked from sendgrid/python-http-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
45 lines (44 loc) · 1.52 KB
/
Copy path.travis.yml
File metadata and controls
45 lines (44 loc) · 1.52 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
dist: xenial # required for Python >= 3.7
language: python
cache: pip
python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
- '3.7'
- '3.8'
before_install:
- pip install pycodestyle coverage codecov
- if [[ "$TRAVIS_PYTHON_VERSION" == 2.7* ]]; then pip install mock; fi
install:
- pip install virtualenv --upgrade
- make install
- make test-install
script:
- pycodestyle --exclude=venv
- coverage run -m unittest discover
after_script:
- codecov
- make test
- coverage run tests/test_unit.py
after_success:
- codecov
deploy:
provider: pypi
user: __token__
password: $PYPI_TOKEN
skip_cleanup: true
on:
branch: main
condition: "$TRAVIS_TEST_RESULT = 0"
tags: true
python: '3.6'
notifications:
slack:
if: branch = main
on_pull_requests: false
on_success: never
on_failure: change
rooms:
- secure: nlMB50M0ay7TeG9pf4IKLUXTfaw6dRS14DMa59l3dAy20bLgg4QSuxl/8lsO3tdBzTjONlpzX5NCR184WO98Kf6dJuYGp5OzfaV2DYYMu12ksbt6bSWyPiYxg3FtKlgWowJs1nRytXz6QoaumZjtoPxfJptq+bUKeZu+4sRT6NButyuUHHAwlOinjZF2UtENoi0zxia+v8EHdEgSJq1HEBmZ+4X/ZUerZndYXM5Lxfy+NHvFCxu/2/D4oQcu92Wfp+/Z1lWNeemspd+XJ5ZVNmB+kJvF8A0O+AFFlGyT8nSimfqyJoxWDT0rQm9u6MtWJol1Jso7iSe0J00fVmgdEFQMLmdcMChAGcGFzFem6C9cMA6xOfDeXS1DosHCObItVrU+YtQYPHzDN2Ubpr1T495+kvdGHVgcYy3UmOFb8Vc0NbQ7nabtlBAlLR2QcouusJmGyjTt7hDrZz6XynKgTZ4vEq7/x3aRgcYD9Oei5fZ2enjzbX3c2Jv7vrzhwAsNp0N+FNx6Nnl1v+UzQtS8XyUCOLK+LYbq+cYKaToowHNWkZM9+0pcdX8DwAHB05aiIBfE18JbjdY0bz1P+4+hmStCUPIjEKyjEPBIuXKMsYCjr092HrJkSMhGWUwJFX+R5hmACm+cQQFDjXXrpzpnXr2xHgbRbb0tX73nchF25kY=