Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
37abb7aa
Commit
37abb7aa
authored
12 years ago
by
Calen Pennington
Browse files
Options
Downloads
Patches
Plain Diff
Search the path for both django-admin.py and django-admin when running tests
parent
2efc0133
No related branches found
Branches containing commit
Tags
release-2020-05-14-12.16
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rakefile
+7
-1
7 additions, 1 deletion
rakefile
with
7 additions
and
1 deletion
rakefile
+
7
−
1
View file @
37abb7aa
...
...
@@ -29,6 +29,11 @@ INSTALL_DIR_PATH = File.join(DEPLOY_DIR, NORMALIZED_DEPLOY_NAME)
CLOBBER
.
include
(
BUILD_DIR
,
REPORT_DIR
,
'cover*'
,
'.coverage'
)
CLEAN
.
include
(
"
#{
BUILD_DIR
}
/*.deb"
,
"
#{
BUILD_DIR
}
/util"
)
def
select_executable
(
*
cmds
)
cmds
.
find_all
{
|
cmd
|
system
(
"which
#{
cmd
}
> /dev/null 2>&1"
)
}[
0
]
||
fail
(
"No executables found from
#{
cmds
.
join
(
', '
)
}
"
)
end
task
:default
=>
[
:pep8
,
:pylint
,
:test
]
directory
REPORT_DIR
...
...
@@ -47,7 +52,8 @@ end
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)"
)
django_admin
=
ENV
[
'DJANGO_ADMIN_PATH'
]
||
select_executable
(
'django-admin.py'
,
'django-admin'
)
sh
(
"
#{
django_admin
}
test --settings=envs.test --pythonpath=. $(ls djangoapps)"
)
end
task
:package
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment