-
Notifications
You must be signed in to change notification settings - Fork 67
/
.travis.yml
44 lines (39 loc) · 1.8 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
# from http://conda.pydata.org/docs/travis.html
language: python
dist: trusty
python:
- "3.6"
- "3.7"
install:
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# Replace dep1 dep2 ... with your dependencies
- conda create -q -n test-environment -c defaults -c conda-forge python=$TRAVIS_PYTHON_VERSION pip flake8
pyparsing pytest blpapi
- source activate test-environment
- python setup.py install
# command to run tests
script:
- flake8 pdblp
- pytest pdblp/tests -v --offline
notifications:
email: false
deploy:
provider: pypi
user: matthewgilbert
password:
# generate from terminal using "travis encrypt PYPI_PW -r user/repo"
secure: "HxPPIPrvUY0lOkRfzhRGn+gN2aBxInjE17xKRd8louQWumjJNFqD2NEC1jKKB25wz4w9wr9gJ7XEWf3RqRvNvt6NfxTPd1XE8L8sfmD5z7i9HKX/9jTtL7fjMaLwSjqp9H1WTnQc0BhpYJuOkZBlDcDcEXL3vMmV43U9uGoDHWw/zRoWrwj0PuAZ5YzQVRn6I+f6wfygHPLfBc2IdpXMrQugm0nECwVsJMJrInDQRopSd3fsXH9iPFCr1kAqu3+5zRjA6YVWJ/2dN4B1SnKj1mU+kWc3wMAmYYh+RAfn6qzpgnnsTA7PoJitRC1z+dtycmRzhsg0+uQv4N4WGHPZSbC3VkCEGBoINaoxbkCKb25ZChmd2TCGi9/WYDFXVmSoe/44Wf1P662MBpvCkaiOd14S0zIuNv6U5ewDw0fXvsDT0lUCzsGG3/tCkG21SunV8X9vIVIfHDeH/YUdFO9qqFZaZ2B2/jDmgQ5rL/alMFwfcTd9VmPyWJPE9drtnOVk6reBBs/YidruFJJ4BILXUqQ38aELpDswC+T4q1Nfgmv7aZIBa1kkM8wp1OMHH73I89sekUxEIZAGbRi/RiSj59yTUOTW5J7y4swhYA+A4nZd2083xAmapY0l+Kjut8s9k48WJYfm96p0Qqk7Deo7vgdbe/hRZdMHX7NwOdmPGMk="
on:
tags: true
distributions: sdist bdist_wheel
repo: matthewgilbert/pdblp
branch: master
condition: $TRAVIS_PYTHON_VERSION == 3.6