forked from quantopian/trading_calendars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (32 loc) · 892 Bytes
/
.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
language: python
cache: pip
sudo: false
python:
- 2.7
- 3.5
env:
- PANDAS_VERSION=0.18.1
NUMPY_VERSION=1.11.3
- PANDAS_VERSION=0.23.4
NUMPY_VERSION=1.15.2
before_install:
- wget "https://repo.continuum.io/miniconda/Miniconda${TRAVIS_PYTHON_VERSION:0:1}-4.3.30-Linux-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
install:
- conda create -n testenv pip python=$TRAVIS_PYTHON_VERSION numpy=$NUMPY_VERSION pandas=$PANDAS_VERSION
- source activate testenv
- python -m pip install --upgrade pip coveralls
- python -m pip install -r etc/requirements.txt
- python -m pip freeze | sort
script:
- flake8 trading_calendars tests
- nosetests tests
after_success:
- coveralls
notifications:
email: false
branches:
only:
- master