-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
54 lines (54 loc) · 2.26 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
language: python
cache: pip
sudo: required
python:
- 2.6
- 2.7
- 3.4
- 3.5
- 3.6
- pypy
env:
- INFLUXDB_VERSION=1.1.1
before_install:
- pip install -U pip setuptools wheel
- wget https://dl.influxdata.com/influxdb/releases/influxdb_${INFLUXDB_VERSION}_amd64.deb
- sudo dpkg -i influxdb_${INFLUXDB_VERSION}_amd64.deb
- sudo /etc/init.d/influxdb start
install:
- pip install -r requirements.txt
- pip install coverage coveralls
- python setup.py build_ext --inplace
script:
- nosetests --with-coverage --cover-package=influxgraph
- pip install statsd
- nosetests --with-coverage --cover-package=influxgraph tests/test_influxdb_integration.py
# Test integration with pure Python code
- find influxgraph -type f -name '*.so' -exec rm -f {} +
- nosetests --with-coverage --cover-package=influxgraph tests/test_influxdb_integration.py tests/test_influxdb_templates_integration.py
services:
- memcached
- docker
deploy:
provider: pypi
on:
tags: true
repo: InfluxGraph/influxgraph
distributions: "sdist"
user: pkittenis
password:
secure: YjKb3mcrgeUmNFVzlJxBQcvTE//X8dERdVqQyqPYgNNMo/NZgR6++gzdYSB25AP14hlFXalGuRZ5x5/t0ngv+eDE2YeCczPtAWGS2KG+Tym6XaIMfLesQsfrJhIB+7pj5iWzXYxhyChKBjWLkM1sz3GhCPSMBngBim4uH24Fja3xIuCCi9dmCMxV/j2laCPwW870Lc/gR5kLLsS9Lf9tZmGz0t6yujRqfW3wtzbQZX0VVun5LaUo01l9Q6tIhEOLswjJt/jVjSqvG7NGap3EzIFtIIgiyx9yFRnpDdxeVEIbp/jyZJgWXM6Wx9VaGzQDBIJUHpF9ro5pEiFCXWrSE19L/Y+mVoZy6SwhI/RwVhmEoYuOguxbDtyQTewl0ldDo3nZ7H0v5xo2DEWqdcVOTGIBd9FErhXNOP3Nz35AiJj+ovnEl9jxJEQgZGXCQnFks/cHDjmENhXjPiqX6FJNohCp+hZmbx4OCZ5x98Zema9K8zN/UPNpxxZwA8zdR6rrQe8iVHZ34aber9gg0mmHkvw1zj9QxKjKDhZR7wvI2eBcUSYGyrqIXCOlTF5rXAIbJ/XGBuebkrMQStE/aPyv6NZQbCtszgPL6BTKgT69ADOm50twgjdews1lIlymI8cwasvoPkOLXebrjjiyAO6Xr/IiBdFQBpQ5aJR/pRnKje0=
skip_upload_docs: true
after_deploy:
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
cd docker &&
docker build -t ikuosu/influxgraph:${TRAVIS_TAG} . &&
docker push ikuosu/influxgraph:${TRAVIS_TAG};
after_success:
- coveralls
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
cd docker &&
docker build -t ikuosu/influxgraph:latest . &&
docker push ikuosu/influxgraph:latest;
fi