-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
93 lines (86 loc) · 3.9 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
# Config file for automatic testing at travis-ci.org
# Copyright (c) 2015 MaxPoint Interactive, Inc.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
# following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
# disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
language: python
sudo: false
env:
global:
- secure: "DeidOowgRT9gzK/kEBjEHRkLdHi4lWTykSLcDlW/MEFSM2mekB12MPSY4gQiF1+lrwXkitnJfpdvIqWrNRKq/K6uwPO3NRFUXOQm/2f/RCONsnS4BedPw4C4ptU+xeB/S7rhp8ztgQWoJkP0etu37/iJ5AUSOuVviayT28n8OrEWPBz5bqn1WuQ1G6YNMpojOX6/HxE8OG1oGpPbxhBx585Q4OOZy1CWSRLrboI8RQh1ymF/sBAHLEC91w5Ixw4qzjpasHG+6Yx1aYPCd2OilSik1L1ORNWDtC3bKFIoK20EwiMEYXjxPdqOWiEAgy2UbzcdMCBVFRQguQ8vst7LOkEN89gpCMbQJLpNS0bHiDy2yE7aNfAUMxDP1yOiGIvUlg4a+olTv4CtgPDE1lZO6GV0GxtggDpUcNx0qOOd57pTjPmheGWbI1VYetOHv8O85uil6d8uRGddEJZ5TltoYyTZ8M4RPa7vJciMX0kkEAg6l6I5FqpnlxuHB/XX8F8AuWAhFieQve8ayw2vfR2gsArau0pOxulAFuvSgxzsz7y8gKIcmME3vXBquqLX8FIAWKhP/9StHdje0M7GHPNv1A4FrJN9tdUePrX4CTN8o6vvcUwoORa3czDl/4trNOwqUdjHMLNs1U0ZaiSFYHVOVT+x9j9887KUcyosT+0vUKc="
matrix:
include:
- language: objective-c
os: osx
osx_image: xcode6.4
env:
- OSNAME="MacOSX"
- PY_VERSION="2.7"
- language: objective-c
os: osx
osx_image: xcode6.4
env:
- OSNAME="MacOSX"
- PY_VERSION="3.5"
- language: objective-c
os: osx
osx_image: xcode6.4
env:
- OSNAME="MacOSX"
- PY_VERSION="3.6"
- os: linux
env:
- OSNAME="Linux"
- PY_VERSION="2.7"
- os: linux
env:
- OSNAME="Linux"
- PY_VERSION="3.5"
- os: linux
env:
- OSNAME="Linux"
- PY_VERSION="3.6"
- DOCTR="1"
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- wget https://repo.continuum.io/miniconda/Miniconda${PY_VERSION:0:1}-latest-${OSNAME}-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
# command to run tests, e.g. python setup.py test
script:
# install the conda library we built
- conda create -n testenv --use-local python=$PY_VERSION cython pytest pandas toolchain python-avro avro python-snappy filelock
- export ARCH=64
- source activate testenv
- python setup.py install
- pytest -vrsx test/*.py
# docs stuff
- |
if [[ "${DOCTR}" == "1" ]]; then
conda install -n testenv sphinx numpydoc doctr sphinx_rtd_theme;
pushd doc;
make html;
popd;
python -m doctr deploy . --built-docs doc/_build/html;
fi