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
49f3f750
Commit
49f3f750
authored
Feb 27, 2018
by
Guilhem Saurel
Browse files
projects have test & doc targets
parent
44032940
Changes
4
Hide whitespace changes
Inline
Side-by-side
rainboard/migrations/0007_projects_tests_docs.py
0 → 100644
View file @
49f3f750
# Generated by Django 2.0.2 on 2018-02-27 14:46
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'rainboard'
,
'0006_branch_deleted'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'project'
,
name
=
'docs'
,
field
=
models
.
BooleanField
(
default
=
True
),
),
migrations
.
AddField
(
model_name
=
'project'
,
name
=
'tests'
,
field
=
models
.
BooleanField
(
default
=
True
),
),
]
rainboard/models.py
View file @
49f3f750
...
...
@@ -160,6 +160,8 @@ class Project(Links, NamedModel, TimeStampedModel):
description
=
models
.
TextField
()
version
=
models
.
CharField
(
max_length
=
20
,
blank
=
True
,
null
=
True
)
updated
=
models
.
DateTimeField
(
blank
=
True
,
null
=
True
)
tests
=
models
.
BooleanField
(
default
=
True
)
docs
=
models
.
BooleanField
(
default
=
True
)
# TODO: release github ↔ robotpkg
def
git_path
(
self
):
...
...
rainboard/templates/rainboard/gitlab-ci.yml
View file @
49f3f750
...
...
@@ -28,7 +28,8 @@ cache:
-
make checkout
-
make install
-
cd work.*/${PROJECT}*/
-
make test
{
%
if project.tests %
}
- make test{% endif %}
{
%
if project.docs %
}
- make doc{% endif %}
except
:
-
gh-pages
...
...
rainboard/templates/rainboard/project_detail.html
View file @
49f3f750
...
...
@@ -29,6 +29,8 @@
<dt>
Updated
</dt>
<dd>
{{ project.updated }}
</dd>
<dt>
Version
</dt>
<dd>
{{ project.version|default:"—" }}
</dd>
<dt>
Commits since
</dt>
<dd>
{{ project.commits_since }}
</dd>
<dt>
Has tests
</dt>
<dd>
{{ project.tests|yesno:"✔,✘" }}
</dd>
<dt>
Has docs
</dt>
<dd>
{{ project.docs|yesno:"✔,✘" }}
</dd>
</dl>
</div>
...
...
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