-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
54 lines (48 loc) · 1.68 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
python:
- 2.7
matrix:
exclude:
- python: 2.7
include:
- python: 2.7
env: pack=newest
- python: 2.7
env: pack=old_mpl
- python: 3.3
env: pack=newest
# It seems there is no matplotlib in condas python 2.6 repos :-(
# - python: 2.6
# env: pack=old_mpl
notifications:
email: false
# Setup anaconda
before_install:
- travis/miniconda.sh -b
- export PATH=/home/travis/anaconda/bin:$PATH
# The next couple lines fix a crash with multiprocessing on Travis
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# Install packages
install:
# Update conda else if will result in a problem when conda updates the repos...
- conda update --yes conda
# Install dependencies
# No idea why a two step process is needed :-(
- if [ ${pack} == "old_mpl" ]; then conda install --yes pip python=$TRAVIS_PYTHON_VERSION matplotlib=1.1.1 ; fi
- if [ ${pack} == "old_mpl" ]; then conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy nose dateutil pandas statsmodels pil six; fi
- if [ ${pack} == "newest" ]; then conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib nose dateutil pandas statsmodels six; fi
- pip install python-coveralls --use-mirrors
- pip install brewer2mpl --use-mirrors
- pip install nose-cov --use-mirrors
- python setup.py install
- export MATPLOTLIB_BACKEND=agg
# List all conda and pip packages
- conda list
# Run test
script:
# only use the unittests under ggplot/tests/ and not the manual tests in tests/
- nosetests ggplot --with-cov --cov ggplot --cov-config .coveragerc --logging-level=INFO
# Calculate coverage
after_success:
- coveralls --config_file .coveragerc