-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
53 lines (44 loc) · 1.04 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
dist: xenial
language: python
python:
- "3.6"
- "3.7"
- "3.8"
- "3.8-dev"
- "3.9-dev"
- "nightly"
- "pypy3"
matrix:
fast_finish: true
allow_failures:
- python: "3.8-dev"
- python: "3.9-dev"
- python: "nightly"
- python: "pypy3"
env:
global:
- CC_TEST_REPORTER_ID=767be575271677c6435197b16f142b6ded3332f4f5112ed30fcc760d02a7d762
install:
- travis_retry pip install bandit coverage pylint poetry
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- pylint pyapp --disable=import-error
- bandit -ll -r pyapp
- poetry install
- poetry run pytest
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -t coverage.py
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: pypi
user: "timsavage"
password:
secure: ""
distributions: "sdist bdist_wheel"
skip_existing: true
on:
branch: master