Skip to content

Commit

Permalink
Added Travis build script, including minimal test
Browse files Browse the repository at this point in the history
Modified examples/plot_all_styles.py to make sure
it works on a headless environment (such as a 
Travis build)
  • Loading branch information
marcusps committed May 19, 2014
1 parent d6d32fe commit 59c3f62
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: python
python:
- "2.6"
- "2.7"
# command to install dependencies
install:
- pip install .
# command to run tests
script:
- python examples/plot_all_styles.py
3 changes: 3 additions & 0 deletions examples/plot_all_styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import os.path as pth

import numpy as np

import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt

from mpltools import style
Expand Down

0 comments on commit 59c3f62

Please sign in to comment.