Commit e7daede8 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

format enforcement

parent 04a25a92
Pipeline #3773 passed with stage
in 42 seconds
# Generated by Django 2.1.7 on 2019-03-21 21:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rainboard', '0032_cijob'),
]
operations = [
migrations.AddField(
model_name='project',
name='allow_format_failure',
field=models.BooleanField(default=False),
),
]
......@@ -193,6 +193,7 @@ class Project(Links, NamedModel, TimeStampedModel):
cmake_name = models.CharField(max_length=200, blank=True, null=True)
archived = models.BooleanField(default=False)
suffix = models.CharField(max_length=50, default='', blank=True)
allow_format_failure = models.BooleanField(default=False)
def save(self, *args, **kwargs):
self.name = valid_name(self.name)
......
......@@ -49,4 +49,10 @@ cache:
paths:
- doxygen-html/
- coverage/
{% endif %}
{% endif %}format:
{% if project.allow_format_failure %} allow_failure: true
{$ endif %} image: eur0c.laas.fr:5000/gepetto/buildfarm/format
script:
- isort -c
- flake8 .
- check-clang-format.sh
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