diff --git a/.travis.yml b/.travis.yml index 85268825..3b0b57ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,9 @@ language: python python: - - "2.6" - "2.7" env: + - DJANGO_VERSION=1.8.5 - DJANGO_VERSION=1.6.11 - DJANGO_VERSION=1.4.22 diff --git a/README.md b/README.md index c79fccbd..f88c899a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ For an overview of some application concepts see the [wiki page](https://github. # Installation -You will need Python 2.6 or 2.7. +You will need Python 2.7. To install dependencies and the codespeed Django app: diff --git a/codespeed/migrations/0001_initial.py b/codespeed/migrations/0001_initial.py index c0cbe3bc..2fdbdb2c 100644 --- a/codespeed/migrations/0001_initial.py +++ b/codespeed/migrations/0001_initial.py @@ -1,209 +1,147 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding model 'Project' - db.create_table('codespeed_project', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)), - ('repo_type', self.gf('django.db.models.fields.CharField')(default='N', max_length=1)), - ('repo_path', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)), - ('repo_user', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)), - ('repo_pass', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)), - ('track', self.gf('django.db.models.fields.BooleanField')(default=False)), - )) - db.send_create_signal('codespeed', ['Project']) - - # Adding model 'Revision' - db.create_table('codespeed_revision', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('commitid', self.gf('django.db.models.fields.CharField')(max_length=42)), - ('project', self.gf('django.db.models.fields.related.ForeignKey')(related_name='revisions', to=orm['codespeed.Project'])), - ('tag', self.gf('django.db.models.fields.CharField')(max_length=20, blank=True)), - ('date', self.gf('django.db.models.fields.DateTimeField')(null=True)), - ('message', self.gf('django.db.models.fields.TextField')(blank=True)), - ('author', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), - )) - db.send_create_signal('codespeed', ['Revision']) - - # Adding unique constraint on 'Revision', fields ['commitid', 'project'] - db.create_unique('codespeed_revision', ['commitid', 'project_id']) - - # Adding model 'Executable' - db.create_table('codespeed_executable', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)), - ('description', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)), - ('project', self.gf('django.db.models.fields.related.ForeignKey')(related_name='executables', to=orm['codespeed.Project'])), - )) - db.send_create_signal('codespeed', ['Executable']) - - # Adding model 'Benchmark' - db.create_table('codespeed_benchmark', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)), - ('benchmark_type', self.gf('django.db.models.fields.CharField')(default='C', max_length=1)), - ('description', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)), - ('units_title', self.gf('django.db.models.fields.CharField')(default='Time', max_length=30)), - ('units', self.gf('django.db.models.fields.CharField')(default='seconds', max_length=20)), - ('lessisbetter', self.gf('django.db.models.fields.BooleanField')(default=True)), - )) - db.send_create_signal('codespeed', ['Benchmark']) - - # Adding model 'Environment' - db.create_table('codespeed_environment', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)), - ('cpu', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), - ('memory', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), - ('os', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), - ('kernel', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), - )) - db.send_create_signal('codespeed', ['Environment']) - - # Adding model 'Result' - db.create_table('codespeed_result', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('value', self.gf('django.db.models.fields.FloatField')()), - ('std_dev', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)), - ('val_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)), - ('val_max', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)), - ('date', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('revision', self.gf('django.db.models.fields.related.ForeignKey')(related_name='results', to=orm['codespeed.Revision'])), - ('executable', self.gf('django.db.models.fields.related.ForeignKey')(related_name='results', to=orm['codespeed.Executable'])), - ('benchmark', self.gf('django.db.models.fields.related.ForeignKey')(related_name='results', to=orm['codespeed.Benchmark'])), - ('environment', self.gf('django.db.models.fields.related.ForeignKey')(related_name='results', to=orm['codespeed.Environment'])), - )) - db.send_create_signal('codespeed', ['Result']) - - # Adding unique constraint on 'Result', fields ['revision', 'executable', 'benchmark', 'environment'] - db.create_unique('codespeed_result', ['revision_id', 'executable_id', 'benchmark_id', 'environment_id']) - - # Adding model 'Report' - db.create_table('codespeed_report', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('revision', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reports', to=orm['codespeed.Revision'])), - ('environment', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reports', to=orm['codespeed.Environment'])), - ('executable', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reports', to=orm['codespeed.Executable'])), - ('summary', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), - ('colorcode', self.gf('django.db.models.fields.CharField')(default='none', max_length=10)), - ('_tablecache', self.gf('django.db.models.fields.TextField')(blank=True)), - )) - db.send_create_signal('codespeed', ['Report']) - - # Adding unique constraint on 'Report', fields ['revision', 'executable', 'environment'] - db.create_unique('codespeed_report', ['revision_id', 'executable_id', 'environment_id']) - - - def backwards(self, orm): - - # Removing unique constraint on 'Report', fields ['revision', 'executable', 'environment'] - db.delete_unique('codespeed_report', ['revision_id', 'executable_id', 'environment_id']) - - # Removing unique constraint on 'Result', fields ['revision', 'executable', 'benchmark', 'environment'] - db.delete_unique('codespeed_result', ['revision_id', 'executable_id', 'benchmark_id', 'environment_id']) - - # Removing unique constraint on 'Revision', fields ['commitid', 'project'] - db.delete_unique('codespeed_revision', ['commitid', 'project_id']) - - # Deleting model 'Project' - db.delete_table('codespeed_project') - - # Deleting model 'Revision' - db.delete_table('codespeed_revision') - - # Deleting model 'Executable' - db.delete_table('codespeed_executable') - - # Deleting model 'Benchmark' - db.delete_table('codespeed_benchmark') - - # Deleting model 'Environment' - db.delete_table('codespeed_environment') - - # Deleting model 'Result' - db.delete_table('codespeed_result') - - # Deleting model 'Report' - db.delete_table('codespeed_report') - - - models = { - 'codespeed.benchmark': { - 'Meta': {'object_name': 'Benchmark'}, - 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), - 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), - 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) - }, - 'codespeed.environment': { - 'Meta': {'object_name': 'Environment'}, - 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), - 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) - }, - 'codespeed.executable': { - 'Meta': {'object_name': 'Executable'}, - 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), - 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) - }, - 'codespeed.project': { - 'Meta': {'object_name': 'Project'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), - 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), - 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), - 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) - }, - 'codespeed.report': { - 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, - '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), - 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), - 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) - }, - 'codespeed.result': { - 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, - 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), - 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), - 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), - 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), - 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), - 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), - 'value': ('django.db.models.fields.FloatField', [], {}) - }, - 'codespeed.revision': { - 'Meta': {'unique_together': "(('commitid', 'project'),)", 'object_name': 'Revision'}, - 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Project']"}), - 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) - } - } - - complete_apps = ['codespeed'] +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Benchmark', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(unique=True, max_length=100)), + ('benchmark_type', models.CharField(default='C', max_length=1, choices=[('C', 'Cross-project'), ('O', 'Own-project')])), + ('description', models.CharField(max_length=300, blank=True)), + ('units_title', models.CharField(default='Time', max_length=30)), + ('units', models.CharField(default='seconds', max_length=20)), + ('lessisbetter', models.BooleanField(default=True, verbose_name='Less is better')), + ('default_on_comparison', models.BooleanField(default=True, verbose_name='Default on comparison page')), + ('parent', models.ForeignKey(default=None, to='codespeed.Benchmark', blank=True, help_text='allows to group benchmarks in hierarchies', null=True, verbose_name='parent')), + ], + ), + migrations.CreateModel( + name='Branch', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=20)), + ], + options={ + 'verbose_name_plural': 'branches', + }, + ), + migrations.CreateModel( + name='Environment', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(unique=True, max_length=100)), + ('cpu', models.CharField(max_length=100, blank=True)), + ('memory', models.CharField(max_length=100, blank=True)), + ('os', models.CharField(max_length=100, blank=True)), + ('kernel', models.CharField(max_length=100, blank=True)), + ], + ), + migrations.CreateModel( + name='Executable', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=30)), + ('description', models.CharField(max_length=200, blank=True)), + ], + ), + migrations.CreateModel( + name='Project', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(unique=True, max_length=30)), + ('repo_type', models.CharField(default='N', max_length=1, verbose_name='Repository type', choices=[('N', 'none'), ('G', 'git'), ('H', 'Github.com'), ('M', 'mercurial'), ('S', 'subversion')])), + ('repo_path', models.CharField(max_length=200, verbose_name='Repository URL', blank=True)), + ('repo_user', models.CharField(max_length=100, verbose_name='Repository username', blank=True)), + ('repo_pass', models.CharField(max_length=100, verbose_name='Repository password', blank=True)), + ('commit_browsing_url', models.CharField(max_length=200, verbose_name='Commit browsing URL', blank=True)), + ('track', models.BooleanField(default=True, verbose_name='Track changes')), + ], + ), + migrations.CreateModel( + name='Report', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('summary', models.CharField(max_length=64, blank=True)), + ('colorcode', models.CharField(default='none', max_length=10)), + ('_tablecache', models.TextField(blank=True)), + ('environment', models.ForeignKey(related_name='reports', to='codespeed.Environment')), + ('executable', models.ForeignKey(related_name='reports', to='codespeed.Executable')), + ], + ), + migrations.CreateModel( + name='Result', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('value', models.FloatField()), + ('std_dev', models.FloatField(null=True, blank=True)), + ('val_min', models.FloatField(null=True, blank=True)), + ('val_max', models.FloatField(null=True, blank=True)), + ('date', models.DateTimeField(null=True, blank=True)), + ('benchmark', models.ForeignKey(related_name='results', to='codespeed.Benchmark')), + ('environment', models.ForeignKey(related_name='results', to='codespeed.Environment')), + ('executable', models.ForeignKey(related_name='results', to='codespeed.Executable')), + ], + ), + migrations.CreateModel( + name='Revision', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('commitid', models.CharField(max_length=42)), + ('tag', models.CharField(max_length=20, blank=True)), + ('date', models.DateTimeField(null=True)), + ('message', models.TextField(blank=True)), + ('author', models.CharField(max_length=100, blank=True)), + ('branch', models.ForeignKey(related_name='revisions', to='codespeed.Branch')), + ('project', models.ForeignKey(related_name='revisions', blank=True, to='codespeed.Project', null=True)), + ], + ), + migrations.AddField( + model_name='result', + name='revision', + field=models.ForeignKey(related_name='results', to='codespeed.Revision'), + ), + migrations.AddField( + model_name='report', + name='revision', + field=models.ForeignKey(related_name='reports', to='codespeed.Revision'), + ), + migrations.AddField( + model_name='executable', + name='project', + field=models.ForeignKey(related_name='executables', to='codespeed.Project'), + ), + migrations.AddField( + model_name='branch', + name='project', + field=models.ForeignKey(related_name='branches', to='codespeed.Project'), + ), + migrations.AlterUniqueTogether( + name='revision', + unique_together=set([('commitid', 'branch')]), + ), + migrations.AlterUniqueTogether( + name='result', + unique_together=set([('revision', 'executable', 'benchmark', 'environment')]), + ), + migrations.AlterUniqueTogether( + name='report', + unique_together=set([('revision', 'executable', 'environment')]), + ), + migrations.AlterUniqueTogether( + name='executable', + unique_together=set([('name', 'project')]), + ), + migrations.AlterUniqueTogether( + name='branch', + unique_together=set([('name', 'project')]), + ), + ] diff --git a/codespeed/south_migrations/0001_initial.py b/codespeed/south_migrations/0001_initial.py new file mode 100644 index 00000000..c0cbe3bc --- /dev/null +++ b/codespeed/south_migrations/0001_initial.py @@ -0,0 +1,209 @@ +# encoding: utf-8 +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + +class Migration(SchemaMigration): + + def forwards(self, orm): + + # Adding model 'Project' + db.create_table('codespeed_project', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)), + ('repo_type', self.gf('django.db.models.fields.CharField')(default='N', max_length=1)), + ('repo_path', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)), + ('repo_user', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)), + ('repo_pass', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)), + ('track', self.gf('django.db.models.fields.BooleanField')(default=False)), + )) + db.send_create_signal('codespeed', ['Project']) + + # Adding model 'Revision' + db.create_table('codespeed_revision', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('commitid', self.gf('django.db.models.fields.CharField')(max_length=42)), + ('project', self.gf('django.db.models.fields.related.ForeignKey')(related_name='revisions', to=orm['codespeed.Project'])), + ('tag', self.gf('django.db.models.fields.CharField')(max_length=20, blank=True)), + ('date', self.gf('django.db.models.fields.DateTimeField')(null=True)), + ('message', self.gf('django.db.models.fields.TextField')(blank=True)), + ('author', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), + )) + db.send_create_signal('codespeed', ['Revision']) + + # Adding unique constraint on 'Revision', fields ['commitid', 'project'] + db.create_unique('codespeed_revision', ['commitid', 'project_id']) + + # Adding model 'Executable' + db.create_table('codespeed_executable', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)), + ('description', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)), + ('project', self.gf('django.db.models.fields.related.ForeignKey')(related_name='executables', to=orm['codespeed.Project'])), + )) + db.send_create_signal('codespeed', ['Executable']) + + # Adding model 'Benchmark' + db.create_table('codespeed_benchmark', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)), + ('benchmark_type', self.gf('django.db.models.fields.CharField')(default='C', max_length=1)), + ('description', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)), + ('units_title', self.gf('django.db.models.fields.CharField')(default='Time', max_length=30)), + ('units', self.gf('django.db.models.fields.CharField')(default='seconds', max_length=20)), + ('lessisbetter', self.gf('django.db.models.fields.BooleanField')(default=True)), + )) + db.send_create_signal('codespeed', ['Benchmark']) + + # Adding model 'Environment' + db.create_table('codespeed_environment', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)), + ('cpu', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), + ('memory', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), + ('os', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), + ('kernel', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), + )) + db.send_create_signal('codespeed', ['Environment']) + + # Adding model 'Result' + db.create_table('codespeed_result', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('value', self.gf('django.db.models.fields.FloatField')()), + ('std_dev', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)), + ('val_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)), + ('val_max', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)), + ('date', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), + ('revision', self.gf('django.db.models.fields.related.ForeignKey')(related_name='results', to=orm['codespeed.Revision'])), + ('executable', self.gf('django.db.models.fields.related.ForeignKey')(related_name='results', to=orm['codespeed.Executable'])), + ('benchmark', self.gf('django.db.models.fields.related.ForeignKey')(related_name='results', to=orm['codespeed.Benchmark'])), + ('environment', self.gf('django.db.models.fields.related.ForeignKey')(related_name='results', to=orm['codespeed.Environment'])), + )) + db.send_create_signal('codespeed', ['Result']) + + # Adding unique constraint on 'Result', fields ['revision', 'executable', 'benchmark', 'environment'] + db.create_unique('codespeed_result', ['revision_id', 'executable_id', 'benchmark_id', 'environment_id']) + + # Adding model 'Report' + db.create_table('codespeed_report', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('revision', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reports', to=orm['codespeed.Revision'])), + ('environment', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reports', to=orm['codespeed.Environment'])), + ('executable', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reports', to=orm['codespeed.Executable'])), + ('summary', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), + ('colorcode', self.gf('django.db.models.fields.CharField')(default='none', max_length=10)), + ('_tablecache', self.gf('django.db.models.fields.TextField')(blank=True)), + )) + db.send_create_signal('codespeed', ['Report']) + + # Adding unique constraint on 'Report', fields ['revision', 'executable', 'environment'] + db.create_unique('codespeed_report', ['revision_id', 'executable_id', 'environment_id']) + + + def backwards(self, orm): + + # Removing unique constraint on 'Report', fields ['revision', 'executable', 'environment'] + db.delete_unique('codespeed_report', ['revision_id', 'executable_id', 'environment_id']) + + # Removing unique constraint on 'Result', fields ['revision', 'executable', 'benchmark', 'environment'] + db.delete_unique('codespeed_result', ['revision_id', 'executable_id', 'benchmark_id', 'environment_id']) + + # Removing unique constraint on 'Revision', fields ['commitid', 'project'] + db.delete_unique('codespeed_revision', ['commitid', 'project_id']) + + # Deleting model 'Project' + db.delete_table('codespeed_project') + + # Deleting model 'Revision' + db.delete_table('codespeed_revision') + + # Deleting model 'Executable' + db.delete_table('codespeed_executable') + + # Deleting model 'Benchmark' + db.delete_table('codespeed_benchmark') + + # Deleting model 'Environment' + db.delete_table('codespeed_environment') + + # Deleting model 'Result' + db.delete_table('codespeed_result') + + # Deleting model 'Report' + db.delete_table('codespeed_report') + + + models = { + 'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + 'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.executable': { + 'Meta': {'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + 'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + 'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'project'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] diff --git a/codespeed/migrations/0002_auto__chg_field_report_summary.py b/codespeed/south_migrations/0002_auto__chg_field_report_summary.py similarity index 100% rename from codespeed/migrations/0002_auto__chg_field_report_summary.py rename to codespeed/south_migrations/0002_auto__chg_field_report_summary.py diff --git a/codespeed/migrations/0003_auto__add_field_revision_branch.py b/codespeed/south_migrations/0003_auto__add_field_revision_branch.py similarity index 100% rename from codespeed/migrations/0003_auto__add_field_revision_branch.py rename to codespeed/south_migrations/0003_auto__add_field_revision_branch.py diff --git a/codespeed/migrations/0004_auto__add_branch.py b/codespeed/south_migrations/0004_auto__add_branch.py similarity index 100% rename from codespeed/migrations/0004_auto__add_branch.py rename to codespeed/south_migrations/0004_auto__add_branch.py diff --git a/codespeed/migrations/0005_auto__del_unique_revision_commitid_project__add_unique_revision_commit.py b/codespeed/south_migrations/0005_auto__del_unique_revision_commitid_project__add_unique_revision_commit.py similarity index 100% rename from codespeed/migrations/0005_auto__del_unique_revision_commitid_project__add_unique_revision_commit.py rename to codespeed/south_migrations/0005_auto__del_unique_revision_commitid_project__add_unique_revision_commit.py diff --git a/codespeed/migrations/0006_auto__chg_field_revision_branch.py b/codespeed/south_migrations/0006_auto__chg_field_revision_branch.py similarity index 100% rename from codespeed/migrations/0006_auto__chg_field_revision_branch.py rename to codespeed/south_migrations/0006_auto__chg_field_revision_branch.py diff --git a/codespeed/migrations/0007_auto__del_unique_revision_commitid_project_branch__add_unique_revision.py b/codespeed/south_migrations/0007_auto__del_unique_revision_commitid_project_branch__add_unique_revision.py similarity index 100% rename from codespeed/migrations/0007_auto__del_unique_revision_commitid_project_branch__add_unique_revision.py rename to codespeed/south_migrations/0007_auto__del_unique_revision_commitid_project_branch__add_unique_revision.py diff --git a/codespeed/migrations/0008_auto__chg_field_benchmark_description.py b/codespeed/south_migrations/0008_auto__chg_field_benchmark_description.py similarity index 100% rename from codespeed/migrations/0008_auto__chg_field_benchmark_description.py rename to codespeed/south_migrations/0008_auto__chg_field_benchmark_description.py diff --git a/codespeed/migrations/0009_auto__chg_field_revision_project.py b/codespeed/south_migrations/0009_auto__chg_field_revision_project.py similarity index 100% rename from codespeed/migrations/0009_auto__chg_field_revision_project.py rename to codespeed/south_migrations/0009_auto__chg_field_revision_project.py diff --git a/codespeed/migrations/0010_auto__add_field_benchmark_default_on_comparison.py b/codespeed/south_migrations/0010_auto__add_field_benchmark_default_on_comparison.py similarity index 100% rename from codespeed/migrations/0010_auto__add_field_benchmark_default_on_comparison.py rename to codespeed/south_migrations/0010_auto__add_field_benchmark_default_on_comparison.py diff --git a/codespeed/migrations/0011_auto__add_field_project_commit_browsing_url.py b/codespeed/south_migrations/0011_auto__add_field_project_commit_browsing_url.py similarity index 100% rename from codespeed/migrations/0011_auto__add_field_project_commit_browsing_url.py rename to codespeed/south_migrations/0011_auto__add_field_project_commit_browsing_url.py diff --git a/codespeed/migrations/0011_auto__del_unique_executable_name__add_unique_executable_project_name.py b/codespeed/south_migrations/0011_auto__del_unique_executable_name__add_unique_executable_project_name.py similarity index 100% rename from codespeed/migrations/0011_auto__del_unique_executable_name__add_unique_executable_project_name.py rename to codespeed/south_migrations/0011_auto__del_unique_executable_name__add_unique_executable_project_name.py diff --git a/codespeed/migrations/0012_auto__add_field_benchmark_parent__add_field_project_commit_browsing_ur.py b/codespeed/south_migrations/0012_auto__add_field_benchmark_parent__add_field_project_commit_browsing_ur.py similarity index 100% rename from codespeed/migrations/0012_auto__add_field_benchmark_parent__add_field_project_commit_browsing_ur.py rename to codespeed/south_migrations/0012_auto__add_field_benchmark_parent__add_field_project_commit_browsing_ur.py diff --git a/codespeed/migrations/0013_auto__chg_field_revision_author__chg_field_environment_kernel__chg_fie.py b/codespeed/south_migrations/0013_auto__chg_field_revision_author__chg_field_environment_kernel__chg_fie.py similarity index 100% rename from codespeed/migrations/0013_auto__chg_field_revision_author__chg_field_environment_kernel__chg_fie.py rename to codespeed/south_migrations/0013_auto__chg_field_revision_author__chg_field_environment_kernel__chg_fie.py diff --git a/codespeed/south_migrations/__init__.py b/codespeed/south_migrations/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/codespeed/south_migrations/migrations/0001_initial.py b/codespeed/south_migrations/migrations/0001_initial.py new file mode 100644 index 00000000..c0cbe3bc --- /dev/null +++ b/codespeed/south_migrations/migrations/0001_initial.py @@ -0,0 +1,209 @@ +# encoding: utf-8 +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + +class Migration(SchemaMigration): + + def forwards(self, orm): + + # Adding model 'Project' + db.create_table('codespeed_project', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)), + ('repo_type', self.gf('django.db.models.fields.CharField')(default='N', max_length=1)), + ('repo_path', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)), + ('repo_user', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)), + ('repo_pass', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)), + ('track', self.gf('django.db.models.fields.BooleanField')(default=False)), + )) + db.send_create_signal('codespeed', ['Project']) + + # Adding model 'Revision' + db.create_table('codespeed_revision', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('commitid', self.gf('django.db.models.fields.CharField')(max_length=42)), + ('project', self.gf('django.db.models.fields.related.ForeignKey')(related_name='revisions', to=orm['codespeed.Project'])), + ('tag', self.gf('django.db.models.fields.CharField')(max_length=20, blank=True)), + ('date', self.gf('django.db.models.fields.DateTimeField')(null=True)), + ('message', self.gf('django.db.models.fields.TextField')(blank=True)), + ('author', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), + )) + db.send_create_signal('codespeed', ['Revision']) + + # Adding unique constraint on 'Revision', fields ['commitid', 'project'] + db.create_unique('codespeed_revision', ['commitid', 'project_id']) + + # Adding model 'Executable' + db.create_table('codespeed_executable', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)), + ('description', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)), + ('project', self.gf('django.db.models.fields.related.ForeignKey')(related_name='executables', to=orm['codespeed.Project'])), + )) + db.send_create_signal('codespeed', ['Executable']) + + # Adding model 'Benchmark' + db.create_table('codespeed_benchmark', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)), + ('benchmark_type', self.gf('django.db.models.fields.CharField')(default='C', max_length=1)), + ('description', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)), + ('units_title', self.gf('django.db.models.fields.CharField')(default='Time', max_length=30)), + ('units', self.gf('django.db.models.fields.CharField')(default='seconds', max_length=20)), + ('lessisbetter', self.gf('django.db.models.fields.BooleanField')(default=True)), + )) + db.send_create_signal('codespeed', ['Benchmark']) + + # Adding model 'Environment' + db.create_table('codespeed_environment', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)), + ('cpu', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), + ('memory', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), + ('os', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), + ('kernel', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), + )) + db.send_create_signal('codespeed', ['Environment']) + + # Adding model 'Result' + db.create_table('codespeed_result', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('value', self.gf('django.db.models.fields.FloatField')()), + ('std_dev', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)), + ('val_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)), + ('val_max', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)), + ('date', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), + ('revision', self.gf('django.db.models.fields.related.ForeignKey')(related_name='results', to=orm['codespeed.Revision'])), + ('executable', self.gf('django.db.models.fields.related.ForeignKey')(related_name='results', to=orm['codespeed.Executable'])), + ('benchmark', self.gf('django.db.models.fields.related.ForeignKey')(related_name='results', to=orm['codespeed.Benchmark'])), + ('environment', self.gf('django.db.models.fields.related.ForeignKey')(related_name='results', to=orm['codespeed.Environment'])), + )) + db.send_create_signal('codespeed', ['Result']) + + # Adding unique constraint on 'Result', fields ['revision', 'executable', 'benchmark', 'environment'] + db.create_unique('codespeed_result', ['revision_id', 'executable_id', 'benchmark_id', 'environment_id']) + + # Adding model 'Report' + db.create_table('codespeed_report', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('revision', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reports', to=orm['codespeed.Revision'])), + ('environment', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reports', to=orm['codespeed.Environment'])), + ('executable', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reports', to=orm['codespeed.Executable'])), + ('summary', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), + ('colorcode', self.gf('django.db.models.fields.CharField')(default='none', max_length=10)), + ('_tablecache', self.gf('django.db.models.fields.TextField')(blank=True)), + )) + db.send_create_signal('codespeed', ['Report']) + + # Adding unique constraint on 'Report', fields ['revision', 'executable', 'environment'] + db.create_unique('codespeed_report', ['revision_id', 'executable_id', 'environment_id']) + + + def backwards(self, orm): + + # Removing unique constraint on 'Report', fields ['revision', 'executable', 'environment'] + db.delete_unique('codespeed_report', ['revision_id', 'executable_id', 'environment_id']) + + # Removing unique constraint on 'Result', fields ['revision', 'executable', 'benchmark', 'environment'] + db.delete_unique('codespeed_result', ['revision_id', 'executable_id', 'benchmark_id', 'environment_id']) + + # Removing unique constraint on 'Revision', fields ['commitid', 'project'] + db.delete_unique('codespeed_revision', ['commitid', 'project_id']) + + # Deleting model 'Project' + db.delete_table('codespeed_project') + + # Deleting model 'Revision' + db.delete_table('codespeed_revision') + + # Deleting model 'Executable' + db.delete_table('codespeed_executable') + + # Deleting model 'Benchmark' + db.delete_table('codespeed_benchmark') + + # Deleting model 'Environment' + db.delete_table('codespeed_environment') + + # Deleting model 'Result' + db.delete_table('codespeed_result') + + # Deleting model 'Report' + db.delete_table('codespeed_report') + + + models = { + 'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + 'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.executable': { + 'Meta': {'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + 'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + 'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'project'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] diff --git a/codespeed/south_migrations/migrations/0002_auto__chg_field_report_summary.py b/codespeed/south_migrations/migrations/0002_auto__chg_field_report_summary.py new file mode 100644 index 00000000..45c7b758 --- /dev/null +++ b/codespeed/south_migrations/migrations/0002_auto__chg_field_report_summary.py @@ -0,0 +1,93 @@ +# encoding: utf-8 +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + +class Migration(SchemaMigration): + + def forwards(self, orm): + + # Changing field 'Report.summary' + db.alter_column('codespeed_report', 'summary', self.gf('django.db.models.fields.CharField')(max_length=64)) + + + def backwards(self, orm): + + # Changing field 'Report.summary' + db.alter_column('codespeed_report', 'summary', self.gf('django.db.models.fields.CharField')(max_length=30)) + + + models = { + 'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + 'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.executable': { + 'Meta': {'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + 'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}) + }, + 'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + 'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'project'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] diff --git a/codespeed/south_migrations/migrations/0003_auto__add_field_revision_branch.py b/codespeed/south_migrations/migrations/0003_auto__add_field_revision_branch.py new file mode 100644 index 00000000..e4bd24f8 --- /dev/null +++ b/codespeed/south_migrations/migrations/0003_auto__add_field_revision_branch.py @@ -0,0 +1,94 @@ +# encoding: utf-8 +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + +class Migration(SchemaMigration): + + def forwards(self, orm): + + # Adding field 'Revision.branch' + db.add_column('codespeed_revision', 'branch', self.gf('django.db.models.fields.CharField')(default='', max_length=15, blank=True), keep_default=False) + + + def backwards(self, orm): + + # Deleting field 'Revision.branch' + db.delete_column('codespeed_revision', 'branch') + + + models = { + 'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + 'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.executable': { + 'Meta': {'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + 'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}) + }, + 'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + 'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'project'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'branch': ('django.db.models.fields.CharField', [], {'max_length': '15', 'blank': 'True'}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] diff --git a/codespeed/south_migrations/migrations/0004_auto__add_branch.py b/codespeed/south_migrations/migrations/0004_auto__add_branch.py new file mode 100644 index 00000000..69e1ea76 --- /dev/null +++ b/codespeed/south_migrations/migrations/0004_auto__add_branch.py @@ -0,0 +1,105 @@ +# encoding: utf-8 +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + +class Migration(SchemaMigration): + + def forwards(self, orm): + + # Adding model 'Branch' + db.create_table('codespeed_branch', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('name', self.gf('django.db.models.fields.CharField')(max_length=20)), + ('project', self.gf('django.db.models.fields.related.ForeignKey')(related_name='branches', to=orm['codespeed.Project'])), + )) + db.send_create_signal('codespeed', ['Branch']) + + + def backwards(self, orm): + + # Deleting model 'Branch' + db.delete_table('codespeed_branch') + + + models = { + 'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + 'codespeed.branch': { + 'Meta': {'object_name': 'Branch'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'branches'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.executable': { + 'Meta': {'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + 'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}) + }, + 'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + 'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'project'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'branch': ('django.db.models.fields.CharField', [], {'max_length': '15', 'blank': 'True'}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] diff --git a/codespeed/south_migrations/migrations/0005_auto__del_unique_revision_commitid_project__add_unique_revision_commit.py b/codespeed/south_migrations/migrations/0005_auto__del_unique_revision_commitid_project__add_unique_revision_commit.py new file mode 100644 index 00000000..3ee28ad9 --- /dev/null +++ b/codespeed/south_migrations/migrations/0005_auto__del_unique_revision_commitid_project__add_unique_revision_commit.py @@ -0,0 +1,112 @@ +# encoding: utf-8 +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + +class Migration(SchemaMigration): + + def forwards(self, orm): + + # Removing unique constraint on 'Revision', fields ['commitid', 'project'] + db.delete_unique('codespeed_revision', ['commitid', 'project_id']) + + # Adding unique constraint on 'Revision', fields ['commitid', 'project', 'branch'] + db.create_unique('codespeed_revision', ['commitid', 'project_id', 'branch']) + + # Adding unique constraint on 'Branch', fields ['project', 'name'] + db.create_unique('codespeed_branch', ['project_id', 'name']) + + + def backwards(self, orm): + + # Removing unique constraint on 'Branch', fields ['project', 'name'] + db.delete_unique('codespeed_branch', ['project_id', 'name']) + + # Removing unique constraint on 'Revision', fields ['commitid', 'project', 'branch'] + db.delete_unique('codespeed_revision', ['commitid', 'project_id', 'branch']) + + # Adding unique constraint on 'Revision', fields ['commitid', 'project'] + db.create_unique('codespeed_revision', ['commitid', 'project_id']) + + + models = { + 'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + 'codespeed.branch': { + 'Meta': {'unique_together': "(('name', 'project'),)", 'object_name': 'Branch'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'branches'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.executable': { + 'Meta': {'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + 'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}) + }, + 'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + 'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'project', 'branch'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'branch': ('django.db.models.fields.CharField', [], {'max_length': '15', 'blank': 'True'}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] diff --git a/codespeed/south_migrations/migrations/0006_auto__chg_field_revision_branch.py b/codespeed/south_migrations/migrations/0006_auto__chg_field_revision_branch.py new file mode 100644 index 00000000..24845ada --- /dev/null +++ b/codespeed/south_migrations/migrations/0006_auto__chg_field_revision_branch.py @@ -0,0 +1,117 @@ +# encoding: utf-8 +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + +class Migration(SchemaMigration): + + def forwards(self, orm): + + # Adding field 'Revision.branch_id' + db.add_column('codespeed_revision', 'branch', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['codespeed.Branch'])) + # Removing unique constraint on 'Revision', fields ['commitid', 'project', branch'] + db.delete_unique('codespeed_revision', ['commitid', 'project_id', 'branch']) + # Delete field 'Revision.branch' + db.delete_column('codespeed_revision', 'branch') + # Adding unique constraint on 'Revision', fields ['commitid', 'project_id', 'branch_id'] + db.create_unique('codespeed_revision', ['commitid', 'project_id', 'branch_id']) + + + # Adding index on 'Revision', fields ['branch'] + # NOTE: commented out because it can cause an + # "index codespeed_revision_d56253ba already exists" + # db.create_index('codespeed_revision', ['branch_id']) + + + def backwards(self, orm): + + # Removing index on 'Revision', fields ['branch'] + db.delete_index('codespeed_revision', ['branch_id']) + + # Renaming column for 'Revision.branch' to match new field type. + db.rename_column('codespeed_revision', 'branch_id', 'branch') + # Changing field 'Revision.branch' + db.alter_column('codespeed_revision', 'branch', self.gf('django.db.models.fields.CharField')(max_length=15)) + + + models = { + 'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + 'codespeed.branch': { + 'Meta': {'unique_together': "(('name', 'project'),)", 'object_name': 'Branch'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'branches'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.executable': { + 'Meta': {'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + 'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}) + }, + 'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + 'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'project', 'branch'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'branch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'branch'", 'to': "orm['codespeed.Branch']"}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] diff --git a/codespeed/south_migrations/migrations/0007_auto__del_unique_revision_commitid_project_branch__add_unique_revision.py b/codespeed/south_migrations/migrations/0007_auto__del_unique_revision_commitid_project_branch__add_unique_revision.py new file mode 100644 index 00000000..e1cef438 --- /dev/null +++ b/codespeed/south_migrations/migrations/0007_auto__del_unique_revision_commitid_project_branch__add_unique_revision.py @@ -0,0 +1,106 @@ +# encoding: utf-8 +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + +class Migration(SchemaMigration): + + def forwards(self, orm): + + # Removing unique constraint on 'Revision', fields ['commitid', 'project', 'branch'] + db.delete_unique('codespeed_revision', ['commitid', 'project_id', 'branch_id']) + + # Adding unique constraint on 'Revision', fields ['commitid', 'branch'] + db.create_unique('codespeed_revision', ['commitid', 'branch_id']) + + + def backwards(self, orm): + + # Removing unique constraint on 'Revision', fields ['commitid', 'branch'] + db.delete_unique('codespeed_revision', ['commitid', 'branch_id']) + + # Adding unique constraint on 'Revision', fields ['commitid', 'project', 'branch'] + db.create_unique('codespeed_revision', ['commitid', 'project_id', 'branch_id']) + + + models = { + 'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + 'codespeed.branch': { + 'Meta': {'unique_together': "(('name', 'project'),)", 'object_name': 'Branch'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'branches'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.executable': { + 'Meta': {'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + 'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}) + }, + 'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + 'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'branch'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'branch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Branch']"}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] diff --git a/codespeed/south_migrations/migrations/0008_auto__chg_field_benchmark_description.py b/codespeed/south_migrations/migrations/0008_auto__chg_field_benchmark_description.py new file mode 100644 index 00000000..e6589632 --- /dev/null +++ b/codespeed/south_migrations/migrations/0008_auto__chg_field_benchmark_description.py @@ -0,0 +1,100 @@ +# encoding: utf-8 +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + +class Migration(SchemaMigration): + + def forwards(self, orm): + + # Changing field 'Benchmark.description' + db.alter_column('codespeed_benchmark', 'description', self.gf('django.db.models.fields.CharField')(max_length=300)) + + + def backwards(self, orm): + + # Changing field 'Benchmark.description' + db.alter_column('codespeed_benchmark', 'description', self.gf('django.db.models.fields.CharField')(max_length=200)) + + + models = { + 'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + 'codespeed.branch': { + 'Meta': {'unique_together': "(('name', 'project'),)", 'object_name': 'Branch'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'branches'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.executable': { + 'Meta': {'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + 'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}) + }, + 'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + 'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'branch'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'branch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Branch']"}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'blank': 'True', 'to': "orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] diff --git a/codespeed/south_migrations/migrations/0009_auto__chg_field_revision_project.py b/codespeed/south_migrations/migrations/0009_auto__chg_field_revision_project.py new file mode 100644 index 00000000..e8adff65 --- /dev/null +++ b/codespeed/south_migrations/migrations/0009_auto__chg_field_revision_project.py @@ -0,0 +1,100 @@ +# encoding: utf-8 +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + +class Migration(SchemaMigration): + + def forwards(self, orm): + + # Changing field 'Revision.project' + db.alter_column('codespeed_revision', 'project_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['codespeed.Project'])) + + + def backwards(self, orm): + + # Changing field 'Revision.project' + db.alter_column('codespeed_revision', 'project_id', self.gf('django.db.models.fields.related.ForeignKey')(default=0, to=orm['codespeed.Project'])) + + + models = { + 'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + 'codespeed.branch': { + 'Meta': {'unique_together': "(('name', 'project'),)", 'object_name': 'Branch'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'branches'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.executable': { + 'Meta': {'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + 'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}) + }, + 'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + 'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'branch'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'branch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Branch']"}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'revisions'", 'null': 'True', 'to': "orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] diff --git a/codespeed/south_migrations/migrations/0010_auto__add_field_benchmark_default_on_comparison.py b/codespeed/south_migrations/migrations/0010_auto__add_field_benchmark_default_on_comparison.py new file mode 100644 index 00000000..53fb79f7 --- /dev/null +++ b/codespeed/south_migrations/migrations/0010_auto__add_field_benchmark_default_on_comparison.py @@ -0,0 +1,103 @@ +# encoding: utf-8 +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + +class Migration(SchemaMigration): + no_dry_run = True + + def forwards(self, orm): + # Adding field 'Benchmark.default_on_comparison' + db.add_column('codespeed_benchmark', 'default_on_comparison', self.gf('django.db.models.fields.BooleanField')(default=True), keep_default=False) + for bench in orm.Benchmark.objects.all(): + bench.default_on_comparison = bench.benchmark_type == 'C' + bench.save() + + + def backwards(self, orm): + # Deleting field 'Benchmark.default_on_comparison' + db.delete_column('codespeed_benchmark', 'default_on_comparison') + + + models = { + 'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'default_on_comparison': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + 'codespeed.branch': { + 'Meta': {'unique_together': "(('name', 'project'),)", 'object_name': 'Branch'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'branches'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.executable': { + 'Meta': {'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + 'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}) + }, + 'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + 'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'branch'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'branch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Branch']"}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'revisions'", 'null': 'True', 'to': "orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] diff --git a/codespeed/south_migrations/migrations/0011_auto__add_field_project_commit_browsing_url.py b/codespeed/south_migrations/migrations/0011_auto__add_field_project_commit_browsing_url.py new file mode 100644 index 00000000..70d60277 --- /dev/null +++ b/codespeed/south_migrations/migrations/0011_auto__add_field_project_commit_browsing_url.py @@ -0,0 +1,102 @@ +# encoding: utf-8 +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + +class Migration(SchemaMigration): + + def forwards(self, orm): + + # Adding field 'Project.commit_browsing_url' + db.add_column('codespeed_project', 'commit_browsing_url', self.gf('django.db.models.fields.CharField')(default='', max_length=200, blank=True), keep_default=False) + + + def backwards(self, orm): + + # Deleting field 'Project.commit_browsing_url' + db.delete_column('codespeed_project', 'commit_browsing_url') + + + models = { + 'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'default_on_comparison': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + 'codespeed.branch': { + 'Meta': {'unique_together': "(('name', 'project'),)", 'object_name': 'Branch'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'branches'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.executable': { + 'Meta': {'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'commit_browsing_url': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + 'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}) + }, + 'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + 'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'branch'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'branch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Branch']"}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'revisions'", 'null': 'True', 'to': "orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] diff --git a/codespeed/south_migrations/migrations/0011_auto__del_unique_executable_name__add_unique_executable_project_name.py b/codespeed/south_migrations/migrations/0011_auto__del_unique_executable_name__add_unique_executable_project_name.py new file mode 100644 index 00000000..a3adab65 --- /dev/null +++ b/codespeed/south_migrations/migrations/0011_auto__del_unique_executable_name__add_unique_executable_project_name.py @@ -0,0 +1,107 @@ +# encoding: utf-8 +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + +class Migration(SchemaMigration): + + def forwards(self, orm): + + # Removing unique constraint on 'Executable', fields ['name'] + db.delete_unique('codespeed_executable', ['name']) + + # Adding unique constraint on 'Executable', fields ['project', 'name'] + db.create_unique('codespeed_executable', ['project_id', 'name']) + + + def backwards(self, orm): + + # Removing unique constraint on 'Executable', fields ['project', 'name'] + db.delete_unique('codespeed_executable', ['project_id', 'name']) + + # Adding unique constraint on 'Executable', fields ['name'] + db.create_unique('codespeed_executable', ['name']) + + + models = { + 'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'default_on_comparison': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + 'codespeed.branch': { + 'Meta': {'unique_together': "(('name', 'project'),)", 'object_name': 'Branch'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'branches'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.executable': { + 'Meta': {'unique_together': "(('name', 'project'),)", 'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + 'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}) + }, + 'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + 'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'branch'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'branch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Branch']"}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'revisions'", 'null': 'True', 'to': "orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] diff --git a/codespeed/south_migrations/migrations/0012_auto__add_field_benchmark_parent__add_field_project_commit_browsing_ur.py b/codespeed/south_migrations/migrations/0012_auto__add_field_benchmark_parent__add_field_project_commit_browsing_ur.py new file mode 100644 index 00000000..d7c07726 --- /dev/null +++ b/codespeed/south_migrations/migrations/0012_auto__add_field_benchmark_parent__add_field_project_commit_browsing_ur.py @@ -0,0 +1,107 @@ +# -*- coding: utf-8 -*- +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + + +class Migration(SchemaMigration): + + def forwards(self, orm): + # Adding field 'Benchmark.parent' + db.add_column('codespeed_benchmark', 'parent', + self.gf('django.db.models.fields.related.ForeignKey')(default=None, to=orm['codespeed.Benchmark'], null=True), + keep_default=False) + + + def backwards(self, orm): + # Deleting field 'Benchmark.parent' + db.delete_column('codespeed_benchmark', 'parent_id') + + # Deleting field 'Project.commit_browsing_url' + db.delete_column('codespeed_project', 'commit_browsing_url') + + + models = { + 'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'default_on_comparison': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['codespeed.Benchmark']", 'null': 'True'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + 'codespeed.branch': { + 'Meta': {'unique_together': "(('name', 'project'),)", 'object_name': 'Branch'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'branches'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) + }, + 'codespeed.executable': { + 'Meta': {'unique_together': "(('name', 'project'),)", 'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': "orm['codespeed.Project']"}) + }, + 'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'commit_browsing_url': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + 'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': "orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}) + }, + 'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Executable']"}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': "orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + 'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'branch'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), + 'branch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['codespeed.Branch']"}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'revisions'", 'null': 'True', 'to': "orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] \ No newline at end of file diff --git a/codespeed/south_migrations/migrations/0013_auto__chg_field_revision_author__chg_field_environment_kernel__chg_fie.py b/codespeed/south_migrations/migrations/0013_auto__chg_field_revision_author__chg_field_environment_kernel__chg_fie.py new file mode 100644 index 00000000..0dd73a92 --- /dev/null +++ b/codespeed/south_migrations/migrations/0013_auto__chg_field_revision_author__chg_field_environment_kernel__chg_fie.py @@ -0,0 +1,138 @@ +# -*- coding: utf-8 -*- +from south.utils import datetime_utils as datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + + +class Migration(SchemaMigration): + + def forwards(self, orm): + + # Changing field 'Revision.author' + db.alter_column(u'codespeed_revision', 'author', self.gf('django.db.models.fields.CharField')(max_length=100)) + + # Changing field 'Environment.kernel' + db.alter_column(u'codespeed_environment', 'kernel', self.gf('django.db.models.fields.CharField')(max_length=100)) + + # Changing field 'Environment.name' + db.alter_column(u'codespeed_environment', 'name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=100)) + + # Changing field 'Environment.memory' + db.alter_column(u'codespeed_environment', 'memory', self.gf('django.db.models.fields.CharField')(max_length=100)) + + # Changing field 'Environment.os' + db.alter_column(u'codespeed_environment', 'os', self.gf('django.db.models.fields.CharField')(max_length=100)) + + # Changing field 'Environment.cpu' + db.alter_column(u'codespeed_environment', 'cpu', self.gf('django.db.models.fields.CharField')(max_length=100)) + + # Changing field 'Benchmark.name' + db.alter_column(u'codespeed_benchmark', 'name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=100)) + + def backwards(self, orm): + + # Changing field 'Revision.author' + db.alter_column(u'codespeed_revision', 'author', self.gf('django.db.models.fields.CharField')(max_length=30)) + + # Changing field 'Environment.kernel' + db.alter_column(u'codespeed_environment', 'kernel', self.gf('django.db.models.fields.CharField')(max_length=30)) + + # Changing field 'Environment.name' + db.alter_column(u'codespeed_environment', 'name', self.gf('django.db.models.fields.CharField')(max_length=30, unique=True)) + + # Changing field 'Environment.memory' + db.alter_column(u'codespeed_environment', 'memory', self.gf('django.db.models.fields.CharField')(max_length=30)) + + # Changing field 'Environment.os' + db.alter_column(u'codespeed_environment', 'os', self.gf('django.db.models.fields.CharField')(max_length=30)) + + # Changing field 'Environment.cpu' + db.alter_column(u'codespeed_environment', 'cpu', self.gf('django.db.models.fields.CharField')(max_length=30)) + + # Changing field 'Benchmark.name' + db.alter_column(u'codespeed_benchmark', 'name', self.gf('django.db.models.fields.CharField')(max_length=30, unique=True)) + + models = { + u'codespeed.benchmark': { + 'Meta': {'object_name': 'Benchmark'}, + 'benchmark_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'}), + 'default_on_comparison': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'lessisbetter': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}), + 'parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['codespeed.Benchmark']", 'null': 'True', 'blank': 'True'}), + 'units': ('django.db.models.fields.CharField', [], {'default': "'seconds'", 'max_length': '20'}), + 'units_title': ('django.db.models.fields.CharField', [], {'default': "'Time'", 'max_length': '30'}) + }, + u'codespeed.branch': { + 'Meta': {'unique_together': "(('name', 'project'),)", 'object_name': 'Branch'}, + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'branches'", 'to': u"orm['codespeed.Project']"}) + }, + u'codespeed.environment': { + 'Meta': {'object_name': 'Environment'}, + 'cpu': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'kernel': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'memory': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}), + 'os': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}) + }, + u'codespeed.executable': { + 'Meta': {'unique_together': "(('name', 'project'),)", 'object_name': 'Executable'}, + 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'executables'", 'to': u"orm['codespeed.Project']"}) + }, + u'codespeed.project': { + 'Meta': {'object_name': 'Project'}, + 'commit_browsing_url': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}), + 'repo_pass': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'repo_path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), + 'repo_type': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}), + 'repo_user': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'track': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) + }, + u'codespeed.report': { + 'Meta': {'unique_together': "(('revision', 'executable', 'environment'),)", 'object_name': 'Report'}, + '_tablecache': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'colorcode': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '10'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': u"orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': u"orm['codespeed.Executable']"}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reports'", 'to': u"orm['codespeed.Revision']"}), + 'summary': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}) + }, + u'codespeed.result': { + 'Meta': {'unique_together': "(('revision', 'executable', 'benchmark', 'environment'),)", 'object_name': 'Result'}, + 'benchmark': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': u"orm['codespeed.Benchmark']"}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), + 'environment': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': u"orm['codespeed.Environment']"}), + 'executable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': u"orm['codespeed.Executable']"}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'revision': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'results'", 'to': u"orm['codespeed.Revision']"}), + 'std_dev': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'val_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), + 'value': ('django.db.models.fields.FloatField', [], {}) + }, + u'codespeed.revision': { + 'Meta': {'unique_together': "(('commitid', 'branch'),)", 'object_name': 'Revision'}, + 'author': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), + 'branch': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': u"orm['codespeed.Branch']"}), + 'commitid': ('django.db.models.fields.CharField', [], {'max_length': '42'}), + 'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'project': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'revisions'", 'null': 'True', 'to': u"orm['codespeed.Project']"}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) + } + } + + complete_apps = ['codespeed'] \ No newline at end of file diff --git a/codespeed/south_migrations/migrations/__init__.py b/codespeed/south_migrations/migrations/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/codespeed/tests/__init__.py b/codespeed/tests/__init__.py index 7fbaa939..e69de29b 100644 --- a/codespeed/tests/__init__.py +++ b/codespeed/tests/__init__.py @@ -1,70 +0,0 @@ -# -*- coding: utf-8 -*- -import os -import re -import unittest - -from django.utils.importlib import import_module - -loadTestsFromModule = unittest.defaultTestLoader.loadTestsFromModule - -DEFAULT_TESTFILE_PATTERN = re.compile(r'^[a-zA-Z0-9].*\.py') - - -def get_suite(*names, **kwargs): - '''Creates (or updates) a ``TestSuite`` consisting of the tests under one or - more modules. - - See http://djangosnippets.org/snippets/1972/ - - This is useful for splitting a Django ``tests.py`` module into multiple test - modules under a ``tests`` directory without having to import them manually - in ``tests/__init__.py``. All you have to write in ``tests/__init__.py`` is:: - - from ... import get_suite - - # django.test looks for a function named suite that returns a TestSuite - suite = lambda: get_suite(__name__) - - This creates a suite consisting of all ``TestCase`` instances defined under - any ``test_.*py`` module under ``tests``. - - :param names: One or more module or package names to be added in the suite. - For module names, the respective module's TestCases are loaded. For package - names, the TestCases of all modules in the package directory satisfying - ``is_test_module`` are loaded. - :keyword is_test_module: Determines whether a file is a test module. It can - be a callable ``f(filename)`` or a regular expression (string or compiled) - that test module file names should ``match()``. - :keyword suite: If given, update this suite instead of creating a new one. - ''' - - suite = kwargs.get('suite') or unittest.TestSuite() - # determine is_test_module - is_test_module = kwargs.get('is_test_module', DEFAULT_TESTFILE_PATTERN) - if isinstance(is_test_module, basestring): # look for exact match - is_test_module = re.compile(is_test_module + '$').match - elif hasattr(is_test_module, 'match'): - is_test_module = is_test_module.match - # determine the test modules to be added in the suite and import them - modules = set() - for name in names: - package = import_module(name) - # if it's a single module just add it - if os.path.splitext(os.path.basename(package.__file__))[0] != '__init__': - modules.add(package) - else: # otherwise it's a package; add all test modules under the dir - modules.update( - import_module('.' + os.path.splitext(f)[0], package=name) - for f in os.listdir(os.path.dirname(package.__file__)) - if is_test_module(f)) - # add the modules to the suite - for module in modules: - # copied from django.test.simple.build_suite - if hasattr(module, 'suite'): - # if module has a suite() method, use it - suite.addTest(module.suite()) - else: # otherwise build the test suite ourselves. - suite.addTest(loadTestsFromModule(module)) - return suite - -suite = lambda: get_suite(__name__) diff --git a/requirements.txt b/requirements.txt index e6c44b84..fa5a7f55 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ -Django>=1.4,<1.7 -South<=2.0 -isodate==0.4.8 +Django>=1.4,<1.9 +isodate>=0.4.7,<0.6 diff --git a/sample_project/settings.py b/sample_project/settings.py index af7b797c..849faf7d 100644 --- a/sample_project/settings.py +++ b/sample_project/settings.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Django settings for a speedcenter project. +# Django settings for a Codespeed project. import os DEBUG = True @@ -23,45 +23,25 @@ } } -# Local time zone for this installation. Choices can be found here: -# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name -# although not all choices may be available on all operating systems. -# If running in a Windows environment this must be set to the same as your -# system time zone. TIME_ZONE = 'America/Chicago' -# Language code for this installation. All choices can be found here: -# http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en-us' SITE_ID = 1 -# If you set this to False, Django will make some optimizations so as not -# to load the internationalization machinery. USE_I18N = False -# Absolute path to the directory that holds media. -# Example: "/home/media/media.lawrence.com/" MEDIA_ROOT = os.path.join(BASEDIR, "media") -# URL that handles the media served from MEDIA_ROOT. Make sure to use a -# trailing slash if there is a path component (optional in other cases). -# Examples: "http://media.lawrence.com", "http://example.com/media/" MEDIA_URL = '/media/' -# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a -# trailing slash. -# Examples: "http://foo.com/media/", "/media/". ADMIN_MEDIA_PREFIX = '/static/admin/' -# Make this unique, and don't share it with anybody. SECRET_KEY = 'as%n_m#)^vee2pe91^^@c))sl7^c6t-9r8n)_69%)2yt+(la2&' -# List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', - # 'django.template.loaders.eggs.load_template_source', ) MIDDLEWARE_CLASSES = ( @@ -111,9 +91,7 @@ def process_exception(self, request, exception): 'django.contrib.admin', 'django.contrib.staticfiles', 'codespeed', - 'south', ) -SOUTH_TESTS_MIGRATE = False STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASEDIR, "sitestatic") @@ -123,67 +101,3 @@ def process_exception(self, request, exception): # Codespeed settings that can be overwritten here. from codespeed.settings import * - -## General default options ## -WEBSITE_NAME = "MySpeedSite" # This name will be used in the reports RSS feed - -#DEF_ENVIRONMENT = None #Name of the environment which should be selected as default - - -#DEF_BASELINE = None # Which executable + revision should be default as a baseline - # Given as the name of the executable and commitid of the revision - # Example: defaultbaseline = {'executable': 'myexe', 'revision': '21'} - -#TREND = 10 # Default value for the depth of the trend - # Used by reports for the latest runs and changes view - -# Threshold that determines when a performance change over the last result is significant -#CHANGE_THRESHOLD = 3.0 - -# Threshold that determines when a performance change -# over a number of revisions is significant -#TREND_THRESHOLD = 5.0 - -## Changes view options ## -#DEF_EXECUTABLE = None # Executable that should be chosen as default in the changes view - # Given as the name of the executable. - # Example: defaultexecutable = "myexe" - -#SHOW_AUTHOR_EMAIL_ADDRESS = True # Whether to show the authors email address in the - # changes log - -## Timeline view options ## -#DEF_BENCHMARK = "grid" # Default selected benchmark. Possible values: - # "grid": will show the grid of plots - # "show_none": will just show a text message - # "mybench": will select benchmark "mybench" - -#DEF_TIMELINE_LIMIT = 50 # Default number of revisions to be plotted - # Possible values 10,50,200,1000 - -#TIMELINE_BRANCHES = True # NOTE: Only the default branch is currently shown - # Get timeline results for specific branches - # Set to False if you want timeline plots and results only for trunk. - -## Comparison view options ## -#CHART_TYPE = 'normal bars' # The options are 'normal bars', 'stacked bars' and 'relative bars' - -#NORMALIZATION = False # True will enable normalization as the default selection - # in the Comparison view. The default normalization can be - # chosen in the defaultbaseline setting - -#CHART_ORIENTATION = 'vertical' # 'vertical' or 'horizontal can be chosen as - # default chart orientation - -#COMP_EXECUTABLES = None # Which executable + revision should be checked as default - # Given as a list of tuples containing the - # name of an executable + commitid of a revision - # An 'L' denotes the last revision - # Example: - # COMP_EXECUTABLES = [ - # ('myexe', '21df2423ra'), - # ('myexe', 'L'),] - -#DEF_BRANCH = "default" # Defines the default branch to be used. - # In git projects, this branch is usually be calles - # "master" diff --git a/setup.py b/setup.py index 9aabe32f..3f7238f9 100644 --- a/setup.py +++ b/setup.py @@ -2,14 +2,14 @@ setup( name='codespeed', - version='0.10.1', + version='0.11.0a0', author='Miquel Torres', author_email='tobami@gmail.com', url='https://github.com/tobami/codespeed', download_url="https://github.com/tobami/codespeed/tags", license='GNU Lesser General Public License version 2.1', keywords=["benchmarking", "visualization"], - install_requires=['django>=1.4,<1.7', 'isodate==0.4.8', 'south<=2.0'], + install_requires=['django>=1.4,<1.8', 'isodate>=0.4.7,<0.6'], packages=find_packages(exclude=['ez_setup', 'sample_project']), description='A web application to monitor and analyze the performance of your code', include_package_data=True, @@ -22,7 +22,6 @@ 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application', ]