mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
创建.travis.yml
This commit is contained in:
parent
a120733121
commit
2e3feef6b3
13
.travis.yml
Normal file
13
.travis.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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
|
||||||
Loading…
Reference in New Issue
Block a user