Commit 18f02695 authored by Michal Čihař's avatar Michal Čihař

Use test ([]) for condition instead of shell eval ([[]])

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 1634794a
......@@ -37,15 +37,15 @@ before_script:
- psql -c 'create database weblate;' -U postgres
# commands to run tests
script:
- if [[ -n "$DO_LINT" ]] ; then ./scripts/generate-locales ; fi
- if [[ -z "$DO_LINT" ]] ; then ./manage.py validate --settings weblate.settings_test ; fi
- if [[ $TRAVIS_DATABASE = sqlite -a -z "$DO_LINT" ]] ; then ./travis/migrate-testing ; fi
- if [[ -z "$DO_LINT" ]] ; then ./manage.py syncdb --noinput --settings weblate.settings_test ; fi
- if [[ -z "$DO_LINT" ]] ; then ./manage.py migrate --settings weblate.settings_test --traceback ; fi
- if [[ -z "$DO_LINT" ]] ; then coverage run --source=. ./manage.py test --settings weblate.settings_test $TRAVIS_RUN_TESTS ; fi
- if [[ -n "$DO_LINT" ]] ; then pep8 --exclude south_migrations,migrations weblate ; fi
- if [[ -n "$DO_LINT" ]] ; then pylint --reports=n --rcfile=pylint.rc weblate ; fi
- if [[ -n "$DO_LINT" ]] ; then pyflakes `find . -name '*.py' -not -name '__init__.py' -not -name 'settings_test_nose.py' -not -name 'settings_test.py'` ; fi
- if [ -n "$DO_LINT" ] ; then ./scripts/generate-locales ; fi
- if [ -z "$DO_LINT" ] ; then ./manage.py validate --settings weblate.settings_test ; fi
- if [ $TRAVIS_DATABASE = sqlite -a -z "$DO_LINT" ] ; then ./travis/migrate-testing ; fi
- if [ -z "$DO_LINT" ] ; then ./manage.py syncdb --noinput --settings weblate.settings_test ; fi
- if [ -z "$DO_LINT" ] ; then ./manage.py migrate --settings weblate.settings_test --traceback ; fi
- if [ -z "$DO_LINT" ] ; then coverage run --source=. ./manage.py test --settings weblate.settings_test $TRAVIS_RUN_TESTS ; fi
- if [ -n "$DO_LINT" ] ; then pep8 --exclude south_migrations,migrations weblate ; fi
- if [ -n "$DO_LINT" ] ; then pylint --reports=n --rcfile=pylint.rc weblate ; fi
- if [ -n "$DO_LINT" ] ; then pyflakes `find . -name '*.py' -not -name '__init__.py' -not -name 'settings_test_nose.py' -not -name 'settings_test.py'` ; fi
after_script:
- coveralls
matrix:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment