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
Gepetto Utils
Commits
ab6a16bb
Commit
ab6a16bb
authored
Dec 18, 2017
by
Guilhem Saurel
Browse files
flake8, tests
parent
c98e40b8
Pipeline
#104
failed with stages
in 12 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
ab6a16bb
variables
:
GIT_SSL_NO_VERIFY
:
"
true"
dashboard
:
dashboard-test
:
stage
:
test
image
:
python:3.6-alpine3.6
before_script
:
-
cd dashboard
-
apk update && apk install add libpq
-
pip install -r requirements.txt flake8
script
:
-
python manage.py test
-
flake8
dashboard-deploy
:
stage
:
deploy
image
:
eur0c.laas.fr:4567/stack-of-tasks/pinocchio-tutorials/deploy
before_script
:
...
...
dashboard/gepetto_packages/admin.py
View file @
ab6a16bb
from
django.contrib
import
admin
from
django.contrib
.admin
import
site
# Register your models here.
from
.models
import
License
,
Package
,
Project
,
Repo
for
model
in
License
,
Package
,
Project
,
Repo
:
site
.
register
(
model
)
dashboard/gepetto_packages/templatetags/gepetto_packages.py
View file @
ab6a16bb
...
...
@@ -3,6 +3,7 @@ from django.utils.safestring import mark_safe
register
=
template
.
Library
()
@
register
.
filter
def
domain
(
url
):
if
url
:
...
...
dashboard/gepetto_packages/tests.py
deleted
100644 → 0
View file @
c98e40b8
from
django.test
import
TestCase
# Create your tests here.
dashboard/gepetto_packages/views.py
deleted
100644 → 0
View file @
c98e40b8
from
django.shortcuts
import
render
# Create your views here.
dashboard/manage.py
View file @
ab6a16bb
...
...
@@ -11,7 +11,7 @@ if __name__ == "__main__":
# issue is really that Django is missing to avoid masking other
# exceptions on Python 2.
try
:
import
django
import
django
# noqa
except
ImportError
:
raise
ImportError
(
"Couldn't import Django. Are you sure it's installed and "
...
...
Write
Preview
Supports
Markdown
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