Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
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
OpenEdx
configuration
Commits
6203c0dc
Commit
6203c0dc
authored
May 06, 2015
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1982 from edx/feanil/optional_post_reqs
Feanil/optional post reqs
parents
c0f94f44
1814b1a0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
playbooks/roles/edxapp/tasks/deploy.yml
+5
-0
playbooks/roles/jenkins_worker/tasks/python.yml
+20
-1
util/jenkins/check-migrations.sh
+3
-1
No files found.
playbooks/roles/edxapp/tasks/deploy.yml
View file @
6203c0dc
...
...
@@ -127,6 +127,10 @@
environment
:
"
{{
edxapp_environment
}}"
sudo_user
:
"
{{
edxapp_user
}}"
-
stat
:
path="{{ post_requirements_file }}"
register
:
post_requirements
sudo_user
:
"
{{
edxapp_user
}}"
# Install the python post requirements into {{ edxapp_venv_dir }}
-
name
:
install python post-requirements
pip
:
>
...
...
@@ -136,6 +140,7 @@
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w"
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
when
:
post_requirements.stat.exists
# Install the python paver requirements into {{ edxapp_venv_dir }}
-
name
:
install python paver-requirements
...
...
playbooks/roles/jenkins_worker/tasks/python.yml
View file @
6203c0dc
...
...
@@ -58,10 +58,29 @@
-
pre.txt
-
github.txt
-
base.txt
-
post.txt
-
paver.txt
sudo_user
:
"
{{
jenkins_user
}}"
# These and the pip install below it can be removed some time after
# https://github.com/edx/edx-platform/pull/7465 has merged.
# This will keep us from breaking after that gets merged.
-
stat
:
path="{{ jenkins_home }}/shallow-clone/requirements/edx/post.txt"
register
:
post_requirements
sudo_user
:
"
{{
jenkins_user
}}"
-
name
:
Install edx-platform post requirements using pip
pip
:
>
requirements={{ jenkins_home }}/shallow-clone/requirements/edx/{{ item }}
extra_args="--exists-action=w"
virtualenv={{ jenkins_home }}/edx-venv
virtualenv_command=virtualenv-2.7
executable=pip
with_items
:
-
post.txt
sudo_user
:
"
{{
jenkins_user
}}"
when
:
post_requirements.stat.exists
# Archive the current state of the virtualenv
# as a starting point for new builds.
# The edx-venv directory is deleted and then recreated
...
...
util/jenkins/check-migrations.sh
View file @
6203c0dc
...
...
@@ -18,7 +18,9 @@ cd "$WORKSPACE/edx-platform"
pip install
--exists-action
w
-r
requirements/edx/pre.txt
pip install
--exists-action
w
-r
requirements/edx/base.txt
pip install
--exists-action
w
-r
requirements/edx/post.txt
if
[[
-f
requiremnets/edx/post.txt
]]
;
then
pip install
--exists-action
w
-r
requirements/edx/post.txt
fi
pip install
--exists-action
w
-r
requirements/edx/repo.txt
pip install
--exists-action
w
-r
requirements/edx/github.txt
pip install
--exists-action
w
-r
requirements/edx/local.txt
...
...
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