mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-16 17:26:38 +00:00
fix basic ci
This commit is contained in:
parent
3e42e6648e
commit
5c5cf7ff98
17
.travis.yml
17
.travis.yml
@ -1,13 +1,12 @@
|
||||
language: python
|
||||
python:
|
||||
- "2.7"
|
||||
- "3.5"
|
||||
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
|
||||
- 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:
|
||||
- python manage.py test
|
||||
- python manage.py test
|
||||
|
@ -4,7 +4,7 @@ from unittest import mock
|
||||
from django.contrib import auth
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
from utils.otp_auth import OtpAuth
|
||||
from otpauth import OtpAuth
|
||||
from utils.shortcuts import rand_str
|
||||
from utils.api.tests import APITestCase, APIClient
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user