-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
.travis.yml
72 lines (65 loc) · 1.83 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# http://travis-ci.org/#!/graphite-project/graphite-web
dist: bionic
language: python
python: 3.9
matrix:
include:
- python: pypy2
env:
- TOXENV=pypy-django111-pyparsing2
- python: 3.6
env:
- TOXENV=py36-django22-pyparsing2
- python: 3.7
env:
- TOXENV=py37-django22-pyparsing2
- python: 3.8
env:
- TOXENV=py38-django22-pyparsing2
- python: 3.9
env:
- TOXENV=py39-django30-pyparsing2
- python: 3.9
env:
- TOXENV=py39-django30-pyparsing2-msgpack
- python: 3.9
env:
- TOXENV=py39-django30-pyparsing2-pyhash
- python: 3.9
env:
- TOXENV=py39-django30-pyparsing2-mysql TEST_MYSQL_PASSWORD=graphite
- python: 3.9
env:
- TOXENV=py39-django30-pyparsing2-postgresql TEST_POSTGRESQL_PASSWORD=graphite
- python: 3.9
env:
- TOXENV=lint
- python: 3.9
env:
- TOXENV=docs
env:
- TOXENV=py27-django111-pyparsing2-msgpack
- TOXENV=py27-django111-pyparsing2-pyhash
- TOXENV=py27-django111-pyparsing2-mysql TEST_MYSQL_PASSWORD=graphite
- TOXENV=py27-django111-pyparsing2-postgresql TEST_POSTGRESQL_PASSWORD=graphite
addons:
apt:
packages:
- libcairo2-dev
- librrd-dev
- libboost-python-dev # for pyhash
postgresql: "9.5"
services:
- redis-server
- mysql
- postgresql
install:
- if echo "$TOXENV" | grep -q 'mysql' ; then mysql -e "GRANT ALL ON test_graphite.* TO 'graphite'@'localhost' IDENTIFIED BY 'graphite';"; fi
- if echo "$TOXENV" | grep -q 'postgresql' ; then psql -c "CREATE USER graphite WITH CREATEDB PASSWORD 'graphite';" -U postgres; fi
- if echo "$TOXENV" | grep -q '^py2' ; then pip install --upgrade pip virtualenv; fi
- pip install tox
script:
- tox -e $TOXENV
after_success:
- pip install codecov
- codecov