Commit acdbfb9e authored by Michal Čihař's avatar Michal Čihař

First attempt to make test results appear in Shippable

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 1cbfb0ce
......@@ -48,7 +48,7 @@ script:
- 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 openshift ; fi
- if [ -n "$DO_LINT" ] ; then pylint --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' -not -name 'settings_openshift.py'` ; fi
- if [ -n "$DO_LINT" ] ; then pyflakes `find . -name '*.py' -not -name '__init__.py' -not -name 'settings_test_*.py' -not -name 'settings_test.py' -not -name 'settings_openshift.py'` ; fi
after_script:
- timestamp.sh coveralls
- if [ -z "$DO_LINT" ] ; then coveralls ; fi
......
......@@ -21,6 +21,7 @@ install:
- pip install --download-cache $HOME/.pip-cache -r requirements-optional.txt
- pip install --download-cache $HOME/.pip-cache -r travis/requirements.txt
- pip install --download-cache $HOME/.pip-cache -r travis/requirements-${TRAVIS_DATABASE:-sqlite}.txt
- pip install --download-cache $HOME/.pip-cache unittest-xml-reporting
# create databases
before_script:
- mysql -e 'create database weblate;'
......@@ -33,14 +34,14 @@ before_script:
# 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 [ -z "$DO_LINT" ] ; then ./manage.py validate --settings weblate.settings_test_shippable ; 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 [ -z "$DO_LINT" ] ; then ./manage.py syncdb --noinput --settings weblate.settings_test_shippable ; fi
- if [ -z "$DO_LINT" ] ; then ./manage.py migrate --settings weblate.settings_test_shippable --traceback ; fi
- if [ -z "$DO_LINT" ] ; then coverage run --source=. ./manage.py test --settings weblate.settings_test_shippable $TRAVIS_RUN_TESTS ; fi
- if [ -n "$DO_LINT" ] ; then pep8 --exclude south_migrations,migrations weblate openshift ; fi
- if [ -n "$DO_LINT" ] ; then pylint --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' -not -name 'settings_openshift.py'` ; fi
- if [ -n "$DO_LINT" ] ; then pyflakes `find . -name '*.py' -not -name '__init__.py' -not -name 'settings_test_*.py' -not -name 'settings_test.py' -not -name 'settings_openshift.py'` ; fi
after_script:
- if [ -z "$DO_LINT" ] ; then coverage xml -o shippable/codecoverage/coverage.xml ; fi
cache: true
......
# -*- coding: utf-8 -*-
#
# Copyright © 2012 - 2014 Michal Čihař <michal@cihar.com>
#
# This file is part of Weblate <http://weblate.org/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from weblate.settings_test import *
TEST_RUNNER = 'xmlrunner.extra.djangotestrunner.XMLTestRunner'
TEST_OUTPUT_DIR = 'shippable/testresults'
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