Repository navigation
Expand file tree
/
Copy path.travis.yml
More file actions
44 lines (37 loc) · 1.42 KB
/
Copy path.travis.yml
File metadata and controls
44 lines (37 loc) · 1.42 KB
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
# References
# - https://gist.github.com/dan-blanchard/7045057
# - https://github.com/numba/numba/blob/master/.travis.yml
language: python
python:
- "2.7"
- "3.3"
- "3.4"
branches:
only:
- master
#- devel
#- release
#- devpatches
before_install:
# Install Miniconda
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.3.0-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then export PATH=/home/travis/miniconda/bin:$PATH; else export PATH=/home/travis/miniconda3/bin:$PATH; fi
- conda update --yes conda
# The next couple lines fix a crash with multiprocessing on Travis
# and are not specific to using Miniconda
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
install:
# Setup environment
# pandas will bring dateutil numpy pytz setuptools six and scipy, we
# might want to avoid the later by installing all dependencies manually
# except scipy and install pandas with --no-deps
- conda create -n travisci --yes python=${TRAVIS_PYTHON_VERSION:0:3} numpy pandas pytables nose
- source activate travisci
script:
- nosetests -v --with-doctest
notifications:
on_success: "change"
on_failure: "always"