-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
51 lines (42 loc) · 893 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
47
48
49
50
51
# Config file for automatic testing at travis-ci.org
sudo: false
language: python
cache: pip
stages:
- linters
- tests
matrix:
include:
- stage: linters
python: 3.7
env: TOX_ENV=pylint
- stage: linters
python: 3.7
env: TOX_ENV=mypy
- stage: linters
python: 3.7
env: TOX_ENV=black
- stage: tests
python: 2.7
env: TOX_ENV=py27-tests
- stage: tests
python: 3.5
env: TOX_ENV=py35-tests
- stage: tests
python: 3.6
env: TOX_ENV=py36-tests
- stage: tests
python: 3.7
env: TOX_ENV=py37-tests
services:
- docker
before_install:
- docker run -p 8200:8200 -d --cap-add=IPC_LOCK -e 'VAULT_DEV_ROOT_TOKEN_ID=test_root_token' vault:0.9.6
install:
- pip install tox codecov
script:
- tox -e $TOX_ENV
before_cache:
- rm -rf $HOME/.cache/pip/log
after_success:
- codecov