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

image allow failure

parent d50446f1
Pipeline #2719 passed with stages
in 6 minutes and 39 seconds
# Generated by Django 2.1.5 on 2019-02-08 16:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rainboard', '0027_project_suffix'),
]
operations = [
migrations.AddField(
model_name='image',
name='allow_failure',
field=models.BooleanField(default=False),
),
]
......@@ -756,6 +756,7 @@ class Image(models.Model):
image = models.CharField(max_length=12, blank=True, null=True)
py3 = models.BooleanField(default=False)
debug = models.BooleanField(default=False)
allow_failure = models.BooleanField(default=False)
class Meta:
unique_together = ('robotpkg', 'target', 'py3', 'debug')
......
......@@ -29,7 +29,8 @@ cache:
{% for image in robotpkg.valid_images %}{{ image.get_job_name }}:
<<: *robotpkg-{{ robotpkg }}
image: {{ image.get_image_name }}
{% if image.debug %} before_script:
{% if image.allow_failure %} allow_failure: true
{% endif %}{% if image.debug %} before_script:
- echo PKG_OPTIONS.{{ robotpkg }}=debug >> /opt/openrobots/etc/robotpkg.conf
{% endif %}
{% endfor %}{% endfor %}{% if project.tests or project.docs %}doc-coverage:
......
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