-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (46 loc) · 1021 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
41
42
43
44
45
46
language: python
sudo: required
cache: pip
env:
global:
- PYTHONUNBUFFERED=yes
matrix:
include:
- python: 3.7.0
env: TOXENV=flake8
os: linux
dist: xenial
- python: 3.7.0
env: TOXENV=typecheck
os: linux
dist: xenial
- python: 3.7.0
env: TOXENV=py37 IDENT="3.7.0" RUN_SUITE=y USE_PYENV=n
os: linux
dist: xenial
- python: 3.7.1
env: TOXENV=py37 IDENT="3.7.1" RUN_SUITE=y USE_PYENV=n
os: linux
dist: xenial
before_install:
install:
- |
if [[ $USE_PYENV ]]; then
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install "${IDENT}"
pyenv global "${IDENT}"
fi
# https://github.com/travis-ci/travis-ci/issues/7940
- sudo rm -f /etc/boto.cfg
- pip list
- travis_retry pip install -U tox
after_success:
- |
if [[ ! -z "$IDENT" ]]; then
.tox/$TOXENV/bin/coverage xml
.tox/$TOXENV/bin/codecov -e IDENT
fi;
script: tox -v -- -v