forked from peterbe/premailer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
49 lines (39 loc) · 1.1 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
# https://travis-ci.org/peterbe/premailer
# This indicates to Travis that we will not use or need sudo
# so that we can benefit from and use the cache->directories
# directive.
sudo: no
language: python
cache: pip
# before_install:
# # twine is necessary so that travis can deploy
# - travis_retry pip install twine coveralls
install:
- travis_retry pip install tox-travis
# coveralls is unique to Travis. It's not something you run locally, like tox.
- travis_retry pip install coveralls
# pypy is not installed on trusty-based containers by default.
# See https://github.com/travis-ci/travis-ci/issues/6865
matrix:
include:
- python: "3.6"
env: TOX_ENV=lint
- python: "2.7"
env: TOX_ENV=py27
- python: "3.4"
env: TOX_ENV=py34
- python: "3.5"
env: TOX_ENV=py35
- python: "3.6"
env: TOX_ENV=py36
# just using pypy2.7 does not work due to travis pypy packaging issues
- python: "pypy2.7-5.10.0"
env: TOX_ENV=pypy
script:
- tox -e $TOX_ENV
branches:
only:
- master
after_success:
# Report coverage results to coveralls.io
- coveralls