-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (48 loc) · 1.38 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
language: python
os: linux
dist: bionic
sudo: required
matrix:
include:
# see Travis-supported Python versions at https://docs.travis-ci.com/user/languages/python/
- python: 3.6
dist: bionic
- python: 3.7
dist: bionic
- python: 3.8
dist: bionic
# no Python 3.9 yet in Travis (Oct 11, 2020)
#- python: 3.9
# dist: bionic
# unfortunately Pipenv is not working on PyPy 3.5
# see https://github.com/pypa/pipenv/issues/3313
# - python: pypy3.5
# dist: xenial
# unfortunately typed-ast doesn't work in PyPy
# see https://github.com/python/typed_ast/issues/111
# Maybe once PyPy reaches version 3.8
#- python: pypy3.6-7.2.0
# dist: bionic
before-install:
- sudo apt-get update
# redis-sentinel install fails in bionic on Travis CI due to dependencies,
# so we can't test the Redis Sentinel backed on Travis only locally
# - sudo apt-get -y install libmemcached-dev memcached redis-server redis-sentinel
- sudo apt-get -y install libmemcached-dev memcached redis-server
- pip install codecov
install:
- pip install pipenv
- pipenv install --dev
script: pytest --cov-report term-missing
after_success:
- coverage combine
- codecov
cache:
directories:
- $PIP_CACHE_DIR
- $PIPENV_CACHE_DIR
env:
global:
- PIP_CACHE_DIR=$HOME/.cache/pip
- PIPENV_CACHE_DIR=$HOME/.cache/pipenv
- TRAVIS=yes