|
a |
|
b/.travis.yml |
|
|
1 |
# Not relying on Travis python distribution but using miniconda instead. |
|
|
2 |
# See: https://github.com/travis-ci/travis-ci/issues/2312 |
|
|
3 |
# And: http://stackoverflow.com/questions/30588634/install-numpy-1-8-in-travis-ci |
|
|
4 |
language: |
|
|
5 |
- generic |
|
|
6 |
|
|
|
7 |
os: |
|
|
8 |
- linux |
|
|
9 |
- osx |
|
|
10 |
|
|
|
11 |
env: |
|
|
12 |
global: |
|
|
13 |
- NUMPY=$(bash .travis/get-py-pkg-version.sh numpy requirements/analytics.txt) SCIPY=$(bash .travis/get-py-pkg-version.sh scipy requirements/analytics.txt) |
|
|
14 |
matrix: |
|
|
15 |
- PYTHON_VERSION=2.7 |
|
|
16 |
- PYTHON_VERSION=3.5 |
|
|
17 |
|
|
|
18 |
before_install: |
|
|
19 |
- chmod +x .travis/download-miniconda.sh |
|
|
20 |
- travis_retry bash .travis/download-miniconda.sh |
|
|
21 |
- chmod +x miniconda.sh |
|
|
22 |
- bash miniconda.sh -b -p $HOME/miniconda |
|
|
23 |
- export PATH=$HOME/miniconda/bin:$PATH |
|
|
24 |
- conda update --yes conda |
|
|
25 |
|
|
|
26 |
install: |
|
|
27 |
# Create an environment with a specific version of python |
|
|
28 |
# See: http://conda.pydata.org/docs/using/envs.html#create-an-environment |
|
|
29 |
- conda create --yes -n test python=$PYTHON_VERSION |
|
|
30 |
- source activate test |
|
|
31 |
- chmod +x .travis/get-py-pkg-version.sh |
|
|
32 |
- conda install --yes numpy=$NUMPY scipy=$SCIPY pip |
|
|
33 |
- pip install setuptools |
|
|
34 |
- pip install .[analytics] |
|
|
35 |
|
|
|
36 |
script: |
|
|
37 |
python setup.py test |