[fix][ci skip] fixing numex directory, adding parens in conditional
This commit is contained in:
@@ -17,7 +17,7 @@ before_script:
|
|||||||
- ./bootstrap.sh
|
- ./bootstrap.sh
|
||||||
- export DICTIONARIES_CHANGED=$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep -q "resources/dictionaries" | wc -l)
|
- 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;
|
- 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;
|
- 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)
|
- 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;
|
- 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;
|
- if [ $TRANSLIT_CHANGED -ne 0 ]; then ./src/build_trans_table; fi;
|
||||||
- make check
|
- make check
|
||||||
after_success:
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user