Skip to content

Commit

Permalink
Let travis-ci check bento.info
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojnnes committed Jul 8, 2013
1 parent 5f62ad5 commit 0156593
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -25,6 +25,8 @@ install:
- $PYTHON setup.py build
- sudo $PYTHON setup.py install
script:
# Check if setup.py's match bento.info
- $PYTHON check_bento_build.py
# Change into an innocuous directory and find tests from installation
- mkdir $HOME/.matplotlib
- "echo 'backend : Agg' > $HOME/.matplotlib/matplotlibrc"
Expand Down
4 changes: 4 additions & 0 deletions check_bento_build.py
Expand Up @@ -3,6 +3,7 @@
"""
import os
import re
import sys


RE_CYTHON = re.compile("config.add_extension\(\s*['\"]([\S]+)['\"]")
Expand Down Expand Up @@ -93,3 +94,6 @@ def info(text):

cy_bento, cy_setup = remove_common_extensions(cy_bento, cy_setup)
print_results(cy_bento, cy_setup)

if cy_setup or cy_bento:
sys.exit(1)

0 comments on commit 0156593

Please sign in to comment.