Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
acdbfb9e
Commit
acdbfb9e
authored
Nov 11, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First attempt to make test results appear in Shippable
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
1cbfb0ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
6 deletions
+31
-6
.travis.yml
.travis.yml
+1
-1
shippable.yml
shippable.yml
+6
-5
weblate/settings_test_shippable.py
weblate/settings_test_shippable.py
+24
-0
No files found.
.travis.yml
View file @
acdbfb9e
...
...
@@ -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
...
...
shippable.yml
View file @
acdbfb9e
...
...
@@ -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
...
...
weblate/settings_test_shippable.py
0 → 100644
View file @
acdbfb9e
# -*- 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'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment