mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 17:17:07 +08:00
Let travis-ci check bento.info
This commit is contained in:
@@ -25,6 +25,8 @@ install:
|
|||||||
- $PYTHON setup.py build
|
- $PYTHON setup.py build
|
||||||
- sudo $PYTHON setup.py install
|
- sudo $PYTHON setup.py install
|
||||||
script:
|
script:
|
||||||
|
# Check if setup.py's match bento.info
|
||||||
|
- $PYTHON check_bento_build.py
|
||||||
# Change into an innocuous directory and find tests from installation
|
# Change into an innocuous directory and find tests from installation
|
||||||
- mkdir $HOME/.matplotlib
|
- mkdir $HOME/.matplotlib
|
||||||
- "echo 'backend : Agg' > $HOME/.matplotlib/matplotlibrc"
|
- "echo 'backend : Agg' > $HOME/.matplotlib/matplotlibrc"
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ Check that Cython extensions in setup.py files match those in bento.info.
|
|||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
RE_CYTHON = re.compile("config.add_extension\(\s*['\"]([\S]+)['\"]")
|
RE_CYTHON = re.compile("config.add_extension\(\s*['\"]([\S]+)['\"]")
|
||||||
@@ -93,3 +94,6 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
cy_bento, cy_setup = remove_common_extensions(cy_bento, cy_setup)
|
cy_bento, cy_setup = remove_common_extensions(cy_bento, cy_setup)
|
||||||
print_results(cy_bento, cy_setup)
|
print_results(cy_bento, cy_setup)
|
||||||
|
|
||||||
|
if cy_setup or cy_bento:
|
||||||
|
sys.exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user