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
8823346a
Commit
8823346a
authored
May 18, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'new-settings' into asset-pipeline
parents
9d00bbf8
a2eb8fca
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
rakefile
+10
-0
settings.py
+0
-0
No files found.
rakefile
View file @
8823346a
...
...
@@ -38,10 +38,12 @@ task :default => [:pep8, :pylint, :test]
directory
REPORT_DIR
desc
"Run pep8 on all of djangoapps"
task
:pep8
=>
REPORT_DIR
do
sh
(
"pep8 --ignore=E501 djangoapps | tee
#{
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
|
...
...
@@ -50,12 +52,20 @@ task :pylint => REPORT_DIR do
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"
)
django_admin
=
ENV
[
'DJANGO_ADMIN_PATH'
]
||
select_executable
(
'django-admin.py'
,
'django-admin'
)
sh
(
"
#{
django_admin
}
test --settings=envs.test --pythonpath=. $(ls djangoapps)"
)
end
desc
"Start a local server with the specified environment (defaults to dev). Other useful environments are devplus (for dev testing with a real local database)"
task
:runserver
,
:env
do
|
t
,
args
|
args
.
with_defaults
(
:env
=>
'dev'
)
django_admin
=
ENV
[
'DJANGO_ADMIN_PATH'
]
||
select_executable
(
'django-admin.py'
,
'django-admin'
)
sh
(
"
#{
django_admin
}
runserver --settings=envs.
#{
args
.
env
}
--pythonpath=."
)
end
task
:package
do
FileUtils
.
mkdir_p
(
BUILD_DIR
)
...
...
settings.py
deleted
100644 → 0
View file @
9d00bbf8
This diff is collapsed.
Click to expand it.
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