Commit 51c91c9b by Tim Krones

Fix Travis build.

parent 2a36adad
# Installs xblock-sdk and dependencies needed to run the tests suite. # Installs xblock-sdk and dependencies needed to run the tests suite.
# Run this script inside a fresh virtual environment. # Run this script inside a fresh virtual environment.
pip install -e git://github.com/edx/xblock-sdk.git#egg=xblock-sdk pip install -e git://github.com/edx/xblock-sdk.git#egg=xblock-sdk
cd $VIRTUAL_ENV/src/xblock-sdk/ && pip install -r requirements.txt \ cd $VIRTUAL_ENV/src/xblock-sdk/ && pip install -r requirements/base.txt \
&& pip install -r test-requirements.txt && cd - && pip install -r requirements/test.txt && cd -
python setup.py develop python setup.py develop
...@@ -21,6 +21,12 @@ if __name__ == "__main__": ...@@ -21,6 +21,12 @@ if __name__ == "__main__":
# Configure a range of ports in case the default port of 8081 is in use # Configure a range of ports in case the default port of 8081 is in use
os.environ.setdefault("DJANGO_LIVE_TEST_SERVER_ADDRESS", "localhost:8081-8099") os.environ.setdefault("DJANGO_LIVE_TEST_SERVER_ADDRESS", "localhost:8081-8099")
try:
os.mkdir('var')
except OSError:
# May already exist.
pass
from django.core.management import execute_from_command_line from django.core.management import execute_from_command_line
args = sys.argv[1:] args = sys.argv[1:]
paths = [arg for arg in args if arg[0] != '-'] paths = [arg for arg in args if arg[0] != '-']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment