Skip to content
GitLab
Menu
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
e7daede8
Commit
e7daede8
authored
Mar 21, 2019
by
Guilhem Saurel
Browse files
format enforcement
parent
04a25a92
Pipeline
#3773
passed with stage
in 42 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/migrations/0033_project_allow_format_failure.py
0 → 100644
View file @
e7daede8
# 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
),
),
]
rainboard/models.py
View file @
e7daede8
...
...
@@ -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
)
...
...
rainboard/templates/rainboard/gitlab-ci.yml
View file @
e7daede8
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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