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
96894452
Commit
96894452
authored
May 15, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1964 from edx/feature/cale/parallel-build-venvs
Use one virtualenv for each parallel build process
parents
d7a6e58f
8b797093
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
jenkins/test.sh
+16
-3
No files found.
jenkins/test.sh
View file @
96894452
...
...
@@ -27,9 +27,22 @@ git submodule foreach 'git reset --hard HEAD'
export
PYTHONIOENCODING
=
UTF-8
GIT_BRANCH
=
${
GIT_BRANCH
/HEAD/master
}
if
[
!
-d
/mnt/virtualenvs/
"
$JOB_NAME
"
]
;
then
mkdir
-p
/mnt/virtualenvs/
"
$JOB_NAME
"
virtualenv /mnt/virtualenvs/
"
$JOB_NAME
"
# When running in parallel on jenkins, workspace could be suffixed by @x
# In that case, we want to use a separate virtualenv that matches up with
# workspace
#
# We need to handle both the case of /path/to/workspace
# and /path/to/workspace@2, which is why we use the following substitutions
#
# $WORKSPACE is the absolute path for the workspace
WORKSPACE_SUFFIX
=
$(
expr
"
$WORKSPACE
"
:
'.*\(@.*\)'
)
||
true
VIRTUALENV_DIR
=
"/mnt/virtualenvs/
${
JOB_NAME
}${
WORKSPACE_SUFFIX
}
"
if
[
!
-d
"
$VIRTUALENV_DIR
"
]
;
then
mkdir
-p
"
$VIRTUALENV_DIR
"
virtualenv
"
$VIRTUALENV_DIR
"
fi
export
PIP_DOWNLOAD_CACHE
=
/mnt/pip-cache
...
...
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