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
e74d02f8
Commit
e74d02f8
authored
Jun 18, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use travis to test against MySQL and PostgreSQL as well
This will hopefully allow to spot issues like issue #319.
parent
f2c9d094
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
119 additions
and
5 deletions
+119
-5
.travis.yml
.travis.yml
+10
-5
weblate/settings_test_mysql.py
weblate/settings_test_mysql.py
+42
-0
weblate/settings_test_postgresql.py
weblate/settings_test_postgresql.py
+42
-0
weblate/settings_test_sqlite.py
weblate/settings_test_sqlite.py
+25
-0
No files found.
.travis.yml
View file @
e74d02f8
...
...
@@ -5,6 +5,9 @@ python:
env
:
-
DJANGO_VERSION=1.4.5
-
DJANGO_VERSION=1.5.1
-
DATABASE=mysql
-
DATABASE=postgresql
-
DATABASE=sqlite
before_install
:
-
sudo apt-get update -qq
-
sudo apt-get install git libcairo2-dev libgtk2.0-dev libglib2.0-dev libtool libpango1.0-dev libatk1.0-dev libffi-dev
...
...
@@ -40,13 +43,15 @@ install:
-
make > /dev/null
-
make install > /dev/null
-
cd ..
# generate configuration
# generate configuration
and create databases
before_script
:
-
cp weblate/settings_example.py weblate/settings.py
-
if [[ $DATABASE = mysql ]] ; then mysql -e 'create database weblate;' ; fi
-
if [[ $DATABASE = postgresql ]] ; then psql -c 'create database weblate;' -U postgres ; fi
# commands to run tests
script
:
-
./scripts/generate-locales
-
./manage.py validate
-
./manage.py syncdb --noinput
-
./manage.py migrate
-
./manage.py test --settings weblate.settings_test trans lang accounts
-
./manage.py validate
--settings weblate.settings_test_$DATABASE
-
./manage.py syncdb --noinput
--settings weblate.settings_test_$DATABASE
-
./manage.py migrate
--settings weblate.settings_test_$DATABASE
-
./manage.py test --settings weblate.settings_test
_$DATABASE
trans lang accounts
weblate/settings_test_mysql.py
0 → 100644
View file @
e74d02f8
# -*- coding: utf-8 -*-
#
# Copyright © 2012 - 2013 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/>.
#
#
# Django settings for running testsuite with MySQL database
#
from
weblate.settings_test
import
*
DATABASES
=
{
'default'
:
{
# Use 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'ENGINE'
:
'django.db.backends.mysql'
,
# Database name or path to database file if using sqlite3.
'NAME'
:
'weblate'
,
# Database user, not used with sqlite3.
'USER'
:
'root'
,
# Database pasword, not used with sqlite3.
'PASSWORD'
:
''
,
# Set to empty string for localhost. Not used with sqlite3.
'HOST'
:
'127.0.0.1'
,
# Set to empty string for default. Not used with sqlite3.
'PORT'
:
''
,
}
}
weblate/settings_test_postgresql.py
0 → 100644
View file @
e74d02f8
# -*- coding: utf-8 -*-
#
# Copyright © 2012 - 2013 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/>.
#
#
# Django settings for running testsuite with PostgreSQL database
#
from
weblate.settings_test
import
*
DATABASES
=
{
'default'
:
{
# Use 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'ENGINE'
:
'django.db.backends.postgresql_psycopg2'
,
# Database name or path to database file if using sqlite3.
'NAME'
:
'weblate'
,
# Database user, not used with sqlite3.
'USER'
:
'postgres'
,
# Database pasword, not used with sqlite3.
'PASSWORD'
:
''
,
# Set to empty string for localhost. Not used with sqlite3.
'HOST'
:
'127.0.0.1'
,
# Set to empty string for default. Not used with sqlite3.
'PORT'
:
''
,
}
}
weblate/settings_test_sqlite.py
0 → 100644
View file @
e74d02f8
# -*- coding: utf-8 -*-
#
# Copyright © 2012 - 2013 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/>.
#
#
# Django settings for running testsuite with SQLite (the default)
#
from
weblate.settings_test
import
*
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