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
fac31d89
Commit
fac31d89
authored
Nov 27, 2018
by
Guilhem Saurel
Browse files
Project.cmake_name
parent
7c0272f4
Pipeline
#1940
passed with stages
in 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/migrations/0024_project_cmake_name.py
0 → 100644
View file @
fac31d89
# Generated by Django 2.1.3 on 2018-11-27 18:59
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'rainboard'
,
'0023_branch_repo'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'project'
,
name
=
'cmake_name'
,
field
=
models
.
CharField
(
blank
=
True
,
max_length
=
200
,
null
=
True
),
),
]
rainboard/models.py
View file @
fac31d89
...
...
@@ -36,7 +36,7 @@ RPKG_LICENSES = {
'modified-bsd'
:
'BSD-3-Clause'
}
RPKG_FIELDS
=
[
'PKGBASE'
,
'PKGVERSION'
,
'MASTER_SITES'
,
'MASTER_REPOSITORY'
,
'MAINTAINER'
,
'COMMENT'
,
'HOMEPAGE'
]
CMAKE_FIELDS
=
{
'NAME'
:
'name'
,
'DESCRIPTION'
:
'description'
,
'URL'
:
'homepage'
,
'VERSION'
:
'version'
}
CMAKE_FIELDS
=
{
'NAME'
:
'
cmake_
name'
,
'DESCRIPTION'
:
'description'
,
'URL'
:
'homepage'
,
'VERSION'
:
'version'
}
TRAVIS_STATE
=
{
'created'
:
None
,
'passed'
:
True
,
'started'
:
None
,
'failed'
:
False
,
'errored'
:
False
,
'canceled'
:
False
}
GITLAB_STATUS
=
{
'failed'
:
False
,
'success'
:
True
,
'pending'
:
None
,
'skipped'
:
None
,
'canceled'
:
None
,
'running'
:
None
}
...
...
@@ -180,6 +180,7 @@ class Project(Links, NamedModel, TimeStampedModel):
docs
=
models
.
BooleanField
(
default
=
True
)
debug
=
models
.
BooleanField
(
default
=
False
)
from_gepetto
=
models
.
BooleanField
(
default
=
True
)
cmake_name
=
models
.
CharField
(
max_length
=
200
,
blank
=
True
,
null
=
True
)
def
save
(
self
,
*
args
,
**
kwargs
):
self
.
name
=
valid_name
(
self
.
name
)
...
...
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