-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
48 lines (40 loc) · 1.4 KB
/
.travis.yml
File metadata and controls
48 lines (40 loc) · 1.4 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
language: python
python:
- 2.7
- 3.3
env:
- MPL=1.1.1 PANDAS=0.12 PIL=pil
- MPL= PANDAS= PIL=
matrix:
exclude:
# we don't want to test old versions agains newer python
# also pil is only needed with matplotlib 1.1.1
- python: 3.3
env: MPL=1.1.1 PANDAS=0.12 PIL=pil
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:
# Install dependencies
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib=$MPL nose dateutil pandas=$PANDAS statsmodels $PIL; else conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib nose dateutil pandas statsmodels; 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