Repository navigation
Expand file tree
/
Copy path.travis.yml
More file actions
61 lines (51 loc) · 1.79 KB
/
Copy path.travis.yml
File metadata and controls
61 lines (51 loc) · 1.79 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# References
# - https://gist.github.com/dan-blanchard/7045057
# - https://github.com/numba/numba/blob/master/.travis.yml
language: python
python:
- "2.7"
- "3.5"
- "3.6"
branches:
only:
- master
#- devel
before_install:
# cannot use sudo with the container-based infrastructure
# - sudo apt-get update
# Install Miniconda
# We do this conditionally because it saves us some downloading if the
# version is the same.
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --add channels conda-forge
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# 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 pyqt qtpy matplotlib xlrd openpyxl
xlsxwriter pytest pytest-pep8
- source activate travisci
script:
- pytest
notifications:
on_success: "change"
on_failure: "always"
# use container-based infrastructure
sudo: false