REVERT previous: travis validates all spiders
@@ -16,10 +16,8 @@ export SCRAPY_SETTINGS_MODULE='travis.travis_settings'
# if [ $TRAVIS_PULL_REQUEST == 'false' ]; then echo "Build NOT triggered by a PR. Everything's ok."; exit 0; fi
# Run new or modified spiders and save output
-# git diff --name-only --diff-filter=AM $TRAVIS_COMMIT_RANGE| \
-# grep .*city_scrapers/spiders/.*\.py | \
-# temporarily only check chi_police spider
-echo city_scrapers/spiders/chi_police.py | \
+git diff --name-only --diff-filter=AM $TRAVIS_COMMIT_RANGE| \
+ grep .*city_scrapers/spiders/.*\.py | \
xargs basename -s .py | \
xargs -I{} scrapy crawl {} -o ./travis/{}.json --loglevel=ERROR
if [ $? -ne 0 ]; then exit 1; fi
