Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
c997a172
Commit
c997a172
authored
Feb 08, 2019
by
Guilhem Saurel
Browse files
image allow failure
parent
d50446f1
Pipeline
#2719
passed with stages
in 6 minutes and 39 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/migrations/0028_image_allow_failure.py
0 → 100644
View file @
c997a172
# 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
),
),
]
rainboard/models.py
View file @
c997a172
...
...
@@ -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'
)
...
...
rainboard/templates/rainboard/gitlab-ci.yml
View file @
c997a172
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment