forked from mwaskom/seaborn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (49 loc) · 1.67 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
43
44
45
46
47
48
49
50
51
52
53
54
language: python
env:
- PYTHON=2.7 DEPS=modern
- PYTHON=2.7 DEPS=minimal
- PYTHON=3.3 DEPS=modern
- PYTHON=3.4 DEPS=modern
install:
- conda update conda --yes
- conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
- conda update conda --yes
- source activate testenv
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ];
then conda install --yes imaging; else
pip install pillow;
fi
- conda install --yes --file testing/deps_${DEPS}.txt
- pip install sphinx numpydoc sphinx_bootstrap_theme runipy
- sudo apt-get install pandoc
- pip install pep8
- pip install https://github.com/dcramer/pyflakes/tarball/master
- pip install .
- cp testing/matplotlibrc .
before_install:
- sudo sh -c "echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections"
- sudo apt-get install msttcorefonts -qq
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh; else
wget http://repo.continuum.io/miniconda/Miniconda3-2.2.2-Linux-x86_64.sh -O miniconda.sh;
fi
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/anaconda/bin:$PATH
before_script:
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
make lint;
fi
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
cd doc;
make notebooks html;
cd ..;
fi
script:
- nosetests --with-doctest
# Notebook tests are failing on old matplotlib
# because the figures have every so slightly a
# different size. Skip until I understand why.
- if [ ${DEPS} == modern ]; then
python ipnbdoctest.py examples/*.ipynb;
fi