OnlineJudge/.travis.yml
virusdefender 32c1b89080 flake8
2017-01-23 16:25:14 +08:00

14 lines
404 B
YAML

language: python
python:
- "3.5"
install:
- pip install -r deploy/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 initadmin
script:
- flake8 .
- python manage.py test