[fix][ci skip] fixing numex directory, adding parens in conditional

This commit is contained in:
Al
2016-03-04 13:54:20 -05:00
parent b406861c67
commit fe3ef4d3d5

View File

@@ -17,7 +17,7 @@ before_script:
- ./bootstrap.sh
- export DICTIONARIES_CHANGED=$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep -q "resources/dictionaries" | wc -l)
- if [ $DICTIONARIES_CHANGED -ne 0 ]; then python scripts/geodata/address_expansions/address_dictionaries.py; fi;
- export NUMEX_CHANGED=$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep -q "resources/dictionaries" | wc -l)
- export NUMEX_CHANGED=$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep -q "resources/numex" | wc -l)
- if [ $NUMEX_CHANGED -ne 0 ]; then python scripts/geodata/i18n/numex.py; fi;
- export TRANSLIT_CHANGED=$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep -q "scripts/i18n/transliteration_rules.py" | wc -l)
- if [ $TRANSLIT_CHANGED -ne 0 ]; then python scripts/geodata/i18n/transliteration_rules.py; fi;
@@ -31,4 +31,4 @@ script:
- if [ $TRANSLIT_CHANGED -ne 0 ]; then ./src/build_trans_table; fi;
- make check
after_success:
- if [[ "${TRAVIS_PULL_REQUEST}" = "false" && $DICTIONARIES_CHANGED -ne 0 || $NUMEX_CHANGED -ne 0 || $TRANSLIT_CHANGED -ne 0 ]]; then ./src/libpostal_data upload base $(pwd)/data/libpostal; git commit -a -m "[auto][build] Adding data files"; git push; fi;
- if [[ "${TRAVIS_PULL_REQUEST}" = "false" && ( $DICTIONARIES_CHANGED -ne 0 || $NUMEX_CHANGED -ne 0 || $TRANSLIT_CHANGED -ne 0 ) ]]; then ./src/libpostal_data upload base $(pwd)/data/libpostal; git commit -a -m "[auto][build] Adding data files"; git push; fi;