forked from graphite-project/graphite-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (59 loc) · 1.7 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
# http://travis-ci.org/#!/graphite-project/graphite-web
language: python
python: 2.7
sudo: false
matrix:
include:
- python: pypy
env:
- TOXENV=pypy-django111-pyparsing2
- python: 3.4
env:
- TOXENV=py34-django111-pyparsing2
- python: 3.5
env:
- TOXENV=py35-django111-pyparsing2
- python: 3.6
env:
- TOXENV=py36-django111-pyparsing2
- python: 3.6
env:
- TOXENV=py36-django111-pyparsing2-msgpack
- python: 3.6
env:
- TOXENV=py36-django111-pyparsing2-pyhash
- python: 3.6
env:
- TOXENV=lint
env:
- TOXENV=py27-django18-pyparsing2
- TOXENV=py27-django19-pyparsing2
- TOXENV=py27-django110-pyparsing2
- TOXENV=py27-django111-pyparsing2-rrdtool
- 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
- TOXENV=docs
- TOXENV=lint
addons:
apt:
packages:
- libcairo2-dev
- librrd-dev
postgresql: "9.5"
services:
- redis-server
- mysql
- postgresql
before_install:
- bash -c "if [[ '$TOXENV' == *mysql* ]]; then mysql -e "'"'"GRANT ALL ON test_graphite.* TO 'graphite'@'localhost' IDENTIFIED BY 'graphite';"'"'"; fi"
- bash -c "if [[ '$TOXENV' == *postgresql* ]]; then psql -c "'"'"CREATE USER graphite WITH CREATEDB PASSWORD 'graphite';"'"'" -U postgres; fi"
- bash -c "if [[ '$TOXENV' == *pyhash* ]]; then sudo apt-get -qq update; sudo apt-get install -y libboost-python-dev; fi"
install:
- pip install tox
script:
- tox -e $TOXENV
after_success:
- pip install codecov
- codecov