Table of Contents
...
- Clone edx-ora2 repo into ../src/ directory (relative to your 'devstack' repo location). If https://github.com/edx/devstack/pull/202 has been merged (or you're using my in flight branch), this will mount the directory in a way that is accessible to the lms container.
- From inside the lms, uninstall ora2 and reinstall your local copy. You can just copy the following line:
pip uninstall ora2 -y; pip install -e /edx/src/edx-ora2/
Now, get your edx-ora2 development environment set up: (the virtual environment MUST be named edx-ora2)
cd /edx/src/edx-ora2
virtualenv edx-ora2
source edx-ora2/bin/activate
make install
ensure that your virtual environment is named edx-ora2. Using a different name will cause errors when trying to generate translations.
- Now, in the devstack directory on your host, run:
make lms-restart lms-logs
- That's it, you're good to go! See Makefile for all the available commands, most are fairly self-explanatory
- In order to simulate a given tox environment (django18, django111, quality, js), run
tox -e <env>
for the env in question (after re-activating your edx-ora2 virtual environment). - Usually, you can just run the underlying make commands for quicker tests, as requirements aren't re-installed.
- In order to simulate a given tox environment (django18, django111, quality, js), run
...
Expand | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
DEPRECATED - Using ORA with vagrant devstack(Note that some of this is outdated, I'm working on updating it to match the 2.0.0 release) Initial SetupThese are the steps to install ORA2 into your pre-existing devstack image:
To run the ORA scripts for packaging, testing etc, you should do the following:
After you have run all the setup commands above, when you restart your devstack do the following to execute ORA scripts:
Debugging JavaScript tests
http://localhost:9876/debug.html
|
...