forked from pydanny/cached-property
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 927 Bytes
/
.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
# Config file for automatic testing at travis-ci.org
sudo: false
language: python
env:
global:
- CC_TEST_REPORTER_ID=56a0691204179e8edcdde4c7ecab73b3693706aa1186ed018ca78acc663520cf
before_script: # code coverage tool
- 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
# command to run tests and save coverage
script:
- py.test --cov cached_property
after_script:
- coverage report -m
- coverage xml
- ./cc-test-reporter format-coverage --input-type coverage.py --debug
- ./cc-test-reporter upload-coverage --debug
python:
- "3.6"
- "3.5"
- "3.4"
- "2.7"
- "pypy"
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -r requirements.txt