Update .travis.sh

This commit is contained in:
Raphael Michel
2019-10-17 15:33:59 +02:00
committed by GitHub
parent 88378be14e
commit b11b79b559

View File

@@ -14,18 +14,18 @@ if [ "$PRETIX_CONFIG_FILE" == "tests/travis_postgres.cfg" ]; then
fi fi
if [ "$1" == "style" ]; then if [ "$1" == "style" ]; then
XDG_CACHE_HOME=/cache pip3 install -Ur src/requirements.txt -r src/requirements/dev.txt XDG_CACHE_HOME=/cache pip3 install --no-use-pep517 -Ur src/requirements.txt -r src/requirements/dev.txt
cd src cd src
flake8 . flake8 .
isort -c -rc -df . isort -c -rc -df .
fi fi
if [ "$1" == "doctests" ]; then if [ "$1" == "doctests" ]; then
XDG_CACHE_HOME=/cache pip3 install -Ur doc/requirements.txt XDG_CACHE_HOME=/cache pip3 install --no-use-pep517 -Ur doc/requirements.txt
cd doc cd doc
make doctest make doctest
fi fi
if [ "$1" == "doc-spelling" ]; then if [ "$1" == "doc-spelling" ]; then
XDG_CACHE_HOME=/cache pip3 install -Ur doc/requirements.txt XDG_CACHE_HOME=/cache pip3 install --no-use-pep517 -Ur doc/requirements.txt
cd doc cd doc
make spelling make spelling
if [ -s _build/spelling/output.txt ]; then if [ -s _build/spelling/output.txt ]; then
@@ -33,26 +33,26 @@ if [ "$1" == "doc-spelling" ]; then
fi fi
fi fi
if [ "$1" == "translation-spelling" ]; then if [ "$1" == "translation-spelling" ]; then
XDG_CACHE_HOME=/cache pip3 install -Ur src/requirements/dev.txt XDG_CACHE_HOME=/cache pip3 install --no-use-pep517 -Ur src/requirements/dev.txt
cd src cd src
potypo potypo
fi fi
if [ "$1" == "tests" ]; then if [ "$1" == "tests" ]; then
pip3 install -r src/requirements.txt -Ur src/requirements/dev.txt pip3 install -r src/requirements.txt --no-use-pep517 -Ur src/requirements/dev.txt
cd src cd src
python manage.py check python manage.py check
make all compress make all compress
py.test --reruns 5 -n 3 tests py.test --reruns 5 -n 3 tests
fi fi
if [ "$1" == "tests-cov" ]; then if [ "$1" == "tests-cov" ]; then
pip3 install -r src/requirements.txt -Ur src/requirements/dev.txt pip3 install -r src/requirements.txt --no-use-pep517 -Ur src/requirements/dev.txt
cd src cd src
python manage.py check python manage.py check
make all compress make all compress
coverage run -m py.test --reruns 5 tests && codecov coverage run -m py.test --reruns 5 tests && codecov
fi fi
if [ "$1" == "plugins" ]; then if [ "$1" == "plugins" ]; then
pip3 install -r src/requirements.txt -Ur src/requirements/dev.txt pip3 install -r src/requirements.txt --no-use-pep517 -Ur src/requirements/dev.txt
cd src cd src
python setup.py develop python setup.py develop
make all compress make all compress