forked from tanghaibao/goatools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (36 loc) · 1.47 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
language: python
env:
global:
- OSX_PYTHON_VERSIONS='2.7 3.4 3.5'
matrix:
include:
# Use the built in venv for linux builds
- os: linux
python: 2.7
- os: linux
python: 3.4
- os: linux
python: 3.5
# Use generic language for osx and install python by hand
- os: osx
language: generic
# Setup anaconda
# * 'wget' suggested by: https://github.com/travis-ci/travis-ci/issues/6825
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then PYTHON_VERSIONS=$TRAVIS_PYTHON_VERSION ; curl https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -o miniconda.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then PYTHON_VERSIONS=$OSX_PYTHON_VERSIONS; wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh ; fi
- 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 packages
install:
# scipy and pandas are required by the package 'statsmodels'
- for VERSION in $PYTHON_VERSIONS ; do conda create --name $VERSION --yes python=$VERSION --file requirements.txt ; source activate $VERSION ; python setup.py install; done
# command to run tests
script:
- for VERSION in $PYTHON_VERSIONS ; do source activate $VERSION ; make test; done
sudo: false