Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
b54f0557
Unverified
Commit
b54f0557
authored
Feb 02, 2017
by
David Haynes
Browse files
Add in an absurd number of omits
- all the .py files we do not test
parent
27e5a214
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
b54f0557
...
@@ -31,12 +31,12 @@ Go-py2.7:
...
@@ -31,12 +31,12 @@ Go-py2.7:
image
:
library/python:2.7
image
:
library/python:2.7
type
:
test
type
:
test
script
:
script
:
-
python manage.py test
-
python manage.py test
Go-py3.6
:
Go-py3.6
:
image
:
library/python:3.6
image
:
library/python:3.6
type
:
test
type
:
test
script
:
script
:
-
pip install coverage
-
pip install coverage
-
coverage run --source=go --omit=*migrations/* manage.py test
-
coverage run --source=go --omit=*migrations/*
,*admin.py,*manage.py,*wsgi.py,*settings.py,*secret.py,*__init__.py,*.pyc,*templates/*,*static/*
manage.py test
-
coverage html -i && grep pc_cov htmlcov/index.html | egrep -o "[0-9]+\%" | awk '{ print "covered " $1;}'
-
coverage html -i && grep pc_cov htmlcov/index.html | egrep -o "[0-9]+\%" | awk '{ print "covered " $1;}'
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