-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
40 lines (32 loc) · 996 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
38
39
40
#
# This is the Travis-CI configuration.
#
language: "python"
# This is how you get container-based environments on Travis-CI. And
# container-based environments are how you get fast test runs.
sudo: false
# Only build master; for "push" builds, this is when the branch pushed
# to is master, for "pr" builds, this is when the merge base of the PR
# is master.
branches:
only:
- "master"
matrix:
include:
- python: 2.7
- python: 3.6
cache:
directories:
# Cache the pip download cache across runs to avoid having to
# repeatedly download packages over the network.
- "$HOME/.cache/pip"
install:
- "pip install --upgrade pip setuptools wheel coverage codecov pyflakes"
- "pip install .[dev]"
script:
- "pyflakes src"
- "python -Wdefault::DeprecationWarning -m coverage run --rcfile=${PWD}/.coveragerc -m twisted.trial kubetop"
# See .coveragerc for an explanation of this step.
- "python -m coverage combine .coverage"
after_script:
- "codecov"