[fix][ci skip] pip installing some light requirements when the dictionaries/numex files change. Only building transliteration if the data file changed (the CLDR files are not in-repo so will be built offline)

This commit is contained in:
Al
2016-03-04 16:16:53 -05:00
parent f1a30dfadd
commit a483fd5d42
2 changed files with 6 additions and 3 deletions

View File

@@ -16,11 +16,11 @@ addons:
before_script:
- ./bootstrap.sh
- export DICTIONARIES_CHANGED=$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep "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 "resources/numex" | wc -l)
- export TRANSLIT_CHANGED=$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep "src/transliteration_data.c" | wc -l)
- if [ $DICTIONARIES_CHANGED -ne 0 || $NUMEX_CHANGED -ne 0 ]; then pip install -r scripts/requirements-simple.txt; 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 "scripts/i18n/transliteration_rules.py" | wc -l)
- if [ $TRANSLIT_CHANGED -ne 0 ]; then python scripts/geodata/i18n/transliteration_rules.py; fi;
- if [ $DICTIONARIES_CHANGED -ne 0 ]; then python scripts/geodata/address_expansions/address_dictionaries.py; fi;
install:
- if [ "$CC" = "gcc" ]; then export CC="gcc-4.8"; fi
script:

View File

@@ -0,0 +1,3 @@
requests==2.9.1
six==1.10.0
ujson==1.33