Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
91c15271
Commit
91c15271
authored
Aug 31, 2015
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update circle-ci to run quality after jshint has been added to PATH.
[Also correct some comments.]
parent
0683e5ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
pavelib/paver_tests/test_paver_quality.py
+2
-2
scripts/circle-ci-tests.sh
+4
-3
No files found.
pavelib/paver_tests/test_paver_quality.py
View file @
91c15271
...
@@ -239,7 +239,7 @@ class TestPaverRunQuality(unittest.TestCase):
...
@@ -239,7 +239,7 @@ class TestPaverRunQuality(unittest.TestCase):
# Test that both pep8 and pylint were called by counting the calls
# Test that both pep8 and pylint were called by counting the calls
# Assert that _get_pep8_violations (which calls "pep8") is called once
# Assert that _get_pep8_violations (which calls "pep8") is called once
self
.
assertEqual
(
_mock_pep8_violations
.
call_count
,
1
)
self
.
assertEqual
(
_mock_pep8_violations
.
call_count
,
1
)
# And assert that sh was called
on
ce (for the calls to pep8 and pylint)
# And assert that sh was called
twi
ce (for the calls to pep8 and pylint)
self
.
assertEqual
(
self
.
_mock_paver_sh
.
call_count
,
2
)
self
.
assertEqual
(
self
.
_mock_paver_sh
.
call_count
,
2
)
@patch
(
'__builtin__.open'
,
mock_open
())
@patch
(
'__builtin__.open'
,
mock_open
())
...
@@ -263,7 +263,7 @@ class TestPaverRunQuality(unittest.TestCase):
...
@@ -263,7 +263,7 @@ class TestPaverRunQuality(unittest.TestCase):
pavelib
.
quality
.
run_quality
(
""
)
pavelib
.
quality
.
run_quality
(
""
)
# Assert that _get_pep8_violations (which calls "pep8") is called once
# Assert that _get_pep8_violations (which calls "pep8") is called once
self
.
assertEqual
(
_mock_pep8_violations
.
call_count
,
1
)
self
.
assertEqual
(
_mock_pep8_violations
.
call_count
,
1
)
# And assert that sh was called
on
ce (for the call to "pylint" & "jshint")
# And assert that sh was called
twi
ce (for the call to "pylint" & "jshint")
self
.
assertEqual
(
self
.
_mock_paver_sh
.
call_count
,
2
)
self
.
assertEqual
(
self
.
_mock_paver_sh
.
call_count
,
2
)
...
...
scripts/circle-ci-tests.sh
View file @
91c15271
...
@@ -44,13 +44,14 @@ case $CIRCLE_NODE_INDEX in
...
@@ -44,13 +44,14 @@ case $CIRCLE_NODE_INDEX in
# fails and aborts the job because nothing is displayed for > 10 minutes.
# fails and aborts the job because nothing is displayed for > 10 minutes.
paver run_pylint
-l
$PYLINT_THRESHOLD
| tee pylint.log
||
EXIT
=
1
paver run_pylint
-l
$PYLINT_THRESHOLD
| tee pylint.log
||
EXIT
=
1
# Run quality task. Pass in the 'fail-under' percentage to diff-quality
paver run_quality
-p
100
||
EXIT
=
1
mkdir
-p
reports
mkdir
-p
reports
echo
"Finding jshint violations and storing report..."
echo
"Finding jshint violations and storing report..."
PATH
=
$PATH
:node_modules/.bin
PATH
=
$PATH
:node_modules/.bin
paver run_jshint
-l
$JSHINT_THRESHOLD
>
jshint.log
||
{
cat
jshint.log
;
EXIT
=
1
;
}
paver run_jshint
-l
$JSHINT_THRESHOLD
>
jshint.log
||
{
cat
jshint.log
;
EXIT
=
1
;
}
# Run quality task. Pass in the 'fail-under' percentage to diff-quality
paver run_quality
-p
100
||
EXIT
=
1
echo
"Running code complexity report (python)."
echo
"Running code complexity report (python)."
paver run_complexity
>
reports/code_complexity.log
||
echo
"Unable to calculate code complexity. Ignoring error."
paver run_complexity
>
reports/code_complexity.log
||
echo
"Unable to calculate code complexity. Ignoring error."
...
...
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