Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
django-cas-server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Samir
django-cas-server
Commits
22a75684
Commit
22a75684
authored
Jun 29, 2016
by
Valentin Samir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add coverage computation to travis
parent
2fba4183
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
11 deletions
+19
-11
.travis.yml
.travis.yml
+2
-2
Makefile
Makefile
+5
-9
requirements-dev.txt
requirements-dev.txt
+1
-0
tox.ini
tox.ini
+11
-0
No files found.
.travis.yml
View file @
22a75684
...
...
@@ -5,13 +5,14 @@ env:
global
:
-
PIP_DOWNLOAD_CACHE=$HOME/.pip_cache
matrix
:
-
TOX_ENV=coverage
-
TOX_ENV=flake8
-
TOX_ENV=py27-django17
-
TOX_ENV=py27-django18
-
TOX_ENV=py27-django19
-
TOX_ENV=py34-django17
-
TOX_ENV=py34-django18
-
TOX_ENV=py34-django19
-
TOX_ENV=flake8
cache
:
directories
:
-
$HOME/.pip-cache/
...
...
@@ -22,4 +23,3 @@ script:
-
tox -e $TOX_ENV
after_script
:
-
cat .tox/$TOX_ENV/log/*.log
Makefile
View file @
22a75684
...
...
@@ -47,9 +47,6 @@ test_venv/cas/manage.py: test_venv
test_venv/bin/python test_venv/cas/manage.py migrate
test_venv/bin/python test_venv/cas/manage.py createsuperuser
test_venv/bin/coverage
:
test_venv
test_venv/bin/pip
install
coverage
test_venv
:
test_venv/bin/python
test_project
:
test_venv/cas/manage.py
...
...
@@ -62,12 +59,11 @@ run_test_server: test_project
tests
:
test_venv
test_venv/bin/py.test
coverage
:
test_venv/bin/coverage
test_venv/bin/coverage run test_venv/bin/py.test
test_venv/bin/coverage html
rm
htmlcov/coverage_html.js
# I am really pissed off by those keybord shortcuts
coverage
:
test_venv
test_venv/bin/py.test
--cov
=
cas_server
--cov-report
xml
--cov-report
html
coverage_codacy
:
coverage
test_venv/bin/coverage xml
test_venv/bin/python-codacy-coverage
:
test_venv/bin/pip
install
codacy-coverage
coverage_codacy
:
coverage test_venv/bin/python-codacy-coverage
test_venv/bin/python-codacy-coverage
-r
coverage.xml
requirements-dev.txt
View file @
22a75684
...
...
@@ -3,6 +3,7 @@ tox>=1.8.1
pytest>=2.6.4
pytest-django>=2.8.0
pytest-pythonpath>=0.3
pytest-cov>=2.2.1
requests>=2.4
requests_futures>=0.9.5
django-picklefield>=0.3.1
...
...
tox.ini
View file @
22a75684
...
...
@@ -7,6 +7,7 @@ envlist=
py34-django18,
py34-django19,
flake8,
coverage
[flake8]
max-line-length
=
100
...
...
@@ -60,3 +61,13 @@ basepython=python
deps
=
flake8
commands
=
flake8 {toxinidir}/cas_server
[testenv:coverage]
basepython
=
python
passenv
=
CODACY_PROJECT_TOKEN
deps
=
-r{toxinidir}/requirements-dev.txt
codacy-coverage
commands
=
py.test
--cov
=
cas_server --cov-report xml
python-codacy-coverage
-r
{toxinidir}/coverage.xml
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