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
800ed264
Commit
800ed264
authored
Jun 06, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it possible to run cleanliness stuff on lms
parent
a37c8738
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
rakefile
+12
-10
No files found.
rakefile
View file @
800ed264
...
...
@@ -5,6 +5,7 @@ require 'tempfile'
REPO_ROOT
=
File
.
dirname
(
__FILE__
)
BUILD_DIR
=
File
.
join
(
REPO_ROOT
,
"build"
)
REPORT_DIR
=
File
.
join
(
REPO_ROOT
,
"reports"
)
LMS_REPORT_DIR
=
File
.
join
(
REPORT_DIR
,
"lms"
)
# Packaging constants
DEPLOY_DIR
=
"/opt/wwc"
...
...
@@ -37,26 +38,27 @@ end
task
:default
=>
[
:pep8
,
:pylint
,
:test
]
directory
REPORT_DIR
directory
LMS_REPORT_DIR
desc
"Run pep8 on all of djangoapps"
task
:pep8
=>
REPORT_DIR
do
sh
(
"pep8 --ignore=E501
djangoapps | tee
#{
REPORT_DIR
}
/pep8.report"
)
task
:pep8
=>
LMS_
REPORT_DIR
do
sh
(
"pep8 --ignore=E501
lms/djangoapps | tee
#{
LMS_
REPORT_DIR
}
/pep8.report"
)
end
desc
"Run pylint on all of djangoapps"
task
:pylint
=>
REPORT_DIR
do
Dir
.
chdir
(
"djangoapps"
)
do
Dir
[
"
*"
].
each
do
|
app
|
sh
(
"pylint -f parseable
#{
app
}
| tee
#{
REPORT_DIR
}
/
#{
app
}
.pylint.report"
)
end
task
:pylint
=>
LMS_
REPORT_DIR
do
ENV
[
'PYTHONPATH'
]
=
'lms/djangoapps'
Dir
[
"lms/djangoapps/
*"
].
each
do
|
app
|
app
=
File
.
basename
(
app
)
sh
(
"pylint -f parseable
#{
app
}
| tee
#{
LMS_REPORT_DIR
}
/
#{
app
}
.pylint.report"
)
end
end
desc
"Run all django tests on our djangoapps"
task
:test
=>
REPORT_DIR
do
ENV
[
'NOSE_XUNIT_FILE'
]
=
File
.
join
(
REPORT_DIR
,
"nosetests.xml"
)
task
:test
=>
LMS_
REPORT_DIR
do
ENV
[
'NOSE_XUNIT_FILE'
]
=
File
.
join
(
LMS_
REPORT_DIR
,
"nosetests.xml"
)
django_admin
=
ENV
[
'DJANGO_ADMIN_PATH'
]
||
select_executable
(
'django-admin.py'
,
'django-admin'
)
sh
(
"
#{
django_admin
}
test --settings=
envs.test --pythonpath=. $(ls
djangoapps)"
)
sh
(
"
#{
django_admin
}
test --settings=
lms.envs.test --pythonpath=. $(ls lms/
djangoapps)"
)
end
desc
<<-
desc
...
...
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