Commit 49f3f750 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

projects have test & doc targets

parent 44032940
# Generated by Django 2.0.2 on 2018-02-27 14:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rainboard', '0006_branch_deleted'),
]
operations = [
migrations.AddField(
model_name='project',
name='docs',
field=models.BooleanField(default=True),
),
migrations.AddField(
model_name='project',
name='tests',
field=models.BooleanField(default=True),
),
]
......@@ -160,6 +160,8 @@ class Project(Links, NamedModel, TimeStampedModel):
description = models.TextField()
version = models.CharField(max_length=20, blank=True, null=True)
updated = models.DateTimeField(blank=True, null=True)
tests = models.BooleanField(default=True)
docs = models.BooleanField(default=True)
# TODO: release github ↔ robotpkg
def git_path(self):
......
......@@ -28,7 +28,8 @@ cache:
- make checkout
- make install
- cd work.*/${PROJECT}*/
- make test
{% if project.tests %}- make test{% endif %}
{% if project.docs %}- make doc{% endif %}
except:
- gh-pages
......
......@@ -29,6 +29,8 @@
<dt>Updated</dt> <dd>{{ project.updated }}</dd>
<dt>Version</dt> <dd>{{ project.version|default:"—" }}</dd>
<dt>Commits since</dt> <dd>{{ project.commits_since }}</dd>
<dt>Has tests</dt> <dd>{{ project.tests|yesno:"✔,✘" }}</dd>
<dt>Has docs</dt> <dd>{{ project.docs|yesno:"✔,✘" }}</dd>
</dl>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment