-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
99 lines (95 loc) · 3.77 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
language: python
cache: pip
notifications:
email: false
python:
- 2.7
- 3.4
- 3.5
- 3.6
# - pypy
services:
- memcached
- docker
env:
- INFLUXDB_VERSION=1.2.2
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_dev.txt
script:
- nosetests --with-coverage --cover-package=influxgraph
- 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
- flake8 influxgraph
after_success:
- codecov
jobs:
include:
- os: osx
if: tag IS present
before_install: skip
install:
- pip install -U delocate twine wheel pip setuptools
- python setup.py bdist_wheel
script:
- delocate-listdeps --all dist/*.whl
- delocate-wheel -v dist/*.whl
- delocate-listdeps --all dist/*.whl
- ls -l dist/
- pip install -v dist/*.whl
- pwd; mkdir temp; cd temp; pwd
- python -c "from influxgraph.ext.nodetrie import Node; Node()"
- cd ..; pwd
after_success:
- if [[ ! -z "$TRAVIS_TAG" ]]; then
twine upload -u $PYPI_U -p $PYPI_P dist/*.whl;
fi
language: generic
python: skip
- stage: build wheels
os: linux
python: 3.6
before_install: skip
install:
- pip install twine
script:
- if [[ ! -z "$TRAVIS_TAG" ]]; then
echo "Building wheels for tag ${TRAVIS_TAG}" &&
docker pull quay.io/pypa/manylinux1_x86_64 &&
docker run --rm -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /io/ci/build-wheels.sh &&
ls wheelhouse;
fi
after_success:
- if [[ ! -z "$TRAVIS_TAG" ]]; then
twine upload -u $PYPI_U -p $PYPI_P wheelhouse/*.whl;
fi
- stage: deploy
before_install: skip
install: skip
script: skip
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 -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
docker build --pull --cache-from influxgraph/influxgraph -t influxgraph/influxgraph:${TRAVIS_TAG} docker &&
docker push influxgraph/influxgraph:${TRAVIS_TAG};
after_success:
- docker build --pull --cache-from influxgraph/influxgraph -t influxgraph/influxgraph:latest docker
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
docker push influxgraph/influxgraph:latest;
fi