OnlineJudge/.travis.yml
2016-03-28 18:53:43 +08:00

13 lines
434 B
YAML

language: python
python:
- "2.7"
install:
- pip install -r dockerfiles/oj_web_server/requirements.txt
- mkdir log test_case upload
- cp oj/custom_settings.example.py oj/custom_settings.py
- echo "SECRET_KEY=\"`cat /dev/urandom | head -1 | md5sum | head -c 32`\"" >> oj/custom_settings.py
- python manage.py migrate
- python manage.py migrate --database=submission
- python manage.py initadmin
script:
- python manage.py test