forked from WattTime/pyiso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (32 loc) · 1.07 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
language: python
python:
- '2.7'
- '3.4'
install:
# Install miniconda for python 2.7
- wget https://repo.continuum.io/miniconda/Miniconda2-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
# Install
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- conda install -n test-environment pandas>=0.18 requests==2.9.1
- source activate test-environment
- python setup.py install
- pip install -r requirements.txt
- pip install coveralls
script: nosetests --with-coverage --cover-package=pyiso ./tests/unit/
deploy:
provider: pypi
user: WattTime
password:
secure: "Jiezhw/tS1ZOatEflgSlCB7cXp+gv5AGorflKIMAJF6O3wqGNh+Y+fcfwkUoGD2ODewnKS0fU8W/58EoX8vu+jRX84aIUIZcOdND5nflMz2kdjbglujKx4vt3DAR7eWRdk5UL69+Ts0GOwTGcj+fCHOud9eNiKXCGkxStrtfhr0="
on:
tags: true
repo: WattTime/pyiso
after_success:
- coveralls