forked from miketheman/pytest-socket
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
50 lines (42 loc) · 1.08 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
# Config file for automatic testing at travis-ci.org
env:
global:
- CC_TEST_REPORTER_ID=fc447195f19e98b977d2e7d2332d15528c51e91473505e61b9eb1cc402dd676a
# Required for 3.7 for now. See https://github.com/travis-ci/travis-ci/issues/9069#issuecomment-425720905
sudo: required
dist: xenial
language: python
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
matrix:
include:
- python: "3.6"
env: TOXENV=coverage
- python: "3.6"
env: TOXENV=flake8
install:
- pip install tox-travis
before_script:
- if [ "$TOXENV" = "coverage" ]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter;
fi
- if [ "$TOXENV" = "coverage" ]; then
chmod +x ./cc-test-reporter;
fi
- if [ "$TOXENV" = "coverage" ]; then
./cc-test-reporter before-build;
fi
script:
- tox -v
after_script:
- if [ "$TOXENV" = "coverage" ]; then
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT;
fi
before_cache:
- rm -rf $HOME/.cache/pip/log
cache:
directories:
- $HOME/.cache/pip