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

Drop Jenkins setup

Using Travis seems to be good enough for us, so let's drop not used
Jenkins hooks.
parent ac78fd66
......@@ -4,7 +4,6 @@ omit =
*migrations*
*/settings_*.py
*/settings.py
*/jenkins_cleanup.py
*/wsgi.py
*ttkit*
......
......@@ -5,7 +5,7 @@ profile=no
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=migrations,settings.py,settings_jenkins.py,settings_test.py,settings_test_mysql.py,settings_test_postgresql.py,settings_test_sqlite.py,.git,test-repos,repos
ignore=migrations,settings.py,settings_test.py,settings_test_mysql.py,settings_test_postgresql.py,settings_test_sqlite.py,.git,test-repos,repos
# Pickle collected data for later comparisons.
persistent=yes
......
......@@ -3,5 +3,4 @@ coveralls
pylint
mysql-python
psycopg2
django_jenkins
selenium
# -*- 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/>.
#
'''
Cleanup task for Jenkins CI
'''
from django_jenkins.tasks import BaseTask
from django.conf import settings
import os
import shutil
class Task(BaseTask):
def teardown_test_environment(self, **kwargs):
'''
Remove test repos before collecting code stats.
The test-repos just pollute stats.
'''
if 'test-repos' in settings.GIT_ROOT:
if os.path.exists(settings.GIT_ROOT):
shutil.rmtree(settings.GIT_ROOT)
# -*- 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 run inside Jenkins
#
from weblate.settings_test import *
import os
INSTALLED_APPS += ('django_jenkins', )
JENKINS_TASKS = (
'weblate.jenkins_cleanup',
'django_jenkins.tasks.run_pylint',
'django_jenkins.tasks.run_pyflakes',
'django_jenkins.tasks.run_sloccount',
'django_jenkins.tasks.with_coverage',
'django_jenkins.tasks.run_pep8',
'django_jenkins.tasks.run_csslint',
'django_jenkins.tasks.run_jshint',
'django_jenkins.tasks.django_tests',
)
PROJECT_APPS = (
'trans',
'lang',
'accounts',
'weblate',
)
CSSLINT_CHECKED_FILES = (
os.path.join(WEB_ROOT, 'media/style.css'),
)
JSHINT_CHECKED_FILES = (
os.path.join(WEB_ROOT, 'media/loader.js'),
)
PYLINT_RCFILE = os.path.join(WEB_ROOT, '..', 'pylint.rc')
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