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
3b361adf
Commit
3b361adf
authored
Aug 13, 2019
by
Guilhem Saurel
Browse files
has_python
parent
e2300779
Pipeline
#5234
passed with stage
in 14 minutes and 17 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/migrations/0037_project_has_python.py
0 → 100644
View file @
3b361adf
# Generated by Django 2.2 on 2019-08-13 12:14
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'rainboard'
,
'0036_update_distros'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'project'
,
name
=
'has_python'
,
field
=
models
.
BooleanField
(
default
=
True
),
),
]
rainboard/models.py
View file @
3b361adf
...
...
@@ -195,6 +195,7 @@ class Project(Links, NamedModel, TimeStampedModel):
archived
=
models
.
BooleanField
(
default
=
False
)
suffix
=
models
.
CharField
(
max_length
=
50
,
default
=
''
,
blank
=
True
)
allow_format_failure
=
models
.
BooleanField
(
default
=
True
)
has_python
=
models
.
BooleanField
(
default
=
True
)
def
save
(
self
,
*
args
,
**
kwargs
):
self
.
name
=
valid_name
(
self
.
name
)
...
...
rainboard/templates/rainboard/gitlab-ci.yml
View file @
3b361adf
...
...
@@ -58,5 +58,6 @@ format:
-
test -f /builds/.clang-format || ln -s /root/.clang-format /builds
script
:
-
check-clang-format.sh
-
flake8 .
{
%
if project.has_python %
}
- flake8 .
-
yapf -dr .
{
%
endif %
}
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