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
4a3929a2
Commit
4a3929a2
authored
May 15, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move test reports into a separate directory
parent
e3dc7d0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
rakefile
+14
-4
No files found.
rakefile
View file @
4a3929a2
...
...
@@ -4,6 +4,7 @@ require 'tempfile'
# Build Constants
REPO_ROOT
=
File
.
dirname
(
__FILE__
)
BUILD_DIR
=
File
.
join
(
REPO_ROOT
,
"build"
)
REPORT_DIR
=
File
.
join
(
REPO_ROOT
,
"reports"
)
# Packaging constants
DEPLOY_DIR
=
"/opt/wwc"
...
...
@@ -25,18 +26,27 @@ NORMALIZED_DEPLOY_NAME = DEPLOY_NAME.downcase().gsub(/[_\/]/, '-')
INSTALL_DIR_PATH
=
File
.
join
(
DEPLOY_DIR
,
NORMALIZED_DEPLOY_NAME
)
# Set up the clean and clobber tasks
CLOBBER
.
include
(
'build
'
)
CLOBBER
.
include
(
BUILD_DIR
,
REPORT_DIR
,
'cover*'
,
'.coverage
'
)
CLEAN
.
include
(
"
#{
BUILD_DIR
}
/*.deb"
,
"
#{
BUILD_DIR
}
/util"
)
task
:pylint
do
task
:default
=>
[
:pep8
,
:pylint
,
:test
]
directory
REPORT_DIR
task
:pep8
=>
REPORT_DIR
do
sh
(
"pep8 djangoapps | tee
#{
REPORT_DIR
}
/pep8.report"
)
end
task
:pylint
=>
REPORT_DIR
do
Dir
.
chdir
(
"djangoapps"
)
do
Dir
[
"*"
].
each
do
|
app
|
sh
(
"pylint -f parseable
#{
app
}
| tee
#{
app
}
.pylin
t"
)
sh
(
"pylint -f parseable
#{
app
}
| tee
#{
REPORT_DIR
}
/
#{
app
}
.pylint.repor
t"
)
end
end
end
task
:test
do
task
:test
=>
REPORT_DIR
do
ENV
[
'NOSE_XUNIT_FILE'
]
=
File
.
join
(
REPORT_DIR
,
"nosetests.xml"
)
sh
(
"django-admin.py test --settings=envs.test --pythonpath=. $(ls djangoapps)"
)
end
...
...
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