mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-28 08:02:11 +00:00
fix tests
This commit is contained in:
parent
040ce8362f
commit
fe70e62121
2
.gitignore
vendored
2
.gitignore
vendored
@ -70,6 +70,8 @@ data/public/upload/*
|
|||||||
!data/public/upload/.gitkeep
|
!data/public/upload/.gitkeep
|
||||||
data/public/avatar/*
|
data/public/avatar/*
|
||||||
!data/public/avatar/default.png
|
!data/public/avatar/default.png
|
||||||
|
data/config/*
|
||||||
|
!data/config/.gitkeep
|
||||||
|
|
||||||
http_locations.conf
|
http_locations.conf
|
||||||
https_locations.conf
|
https_locations.conf
|
||||||
|
@ -9,8 +9,7 @@ before_install:
|
|||||||
- docker run -it -d -e POSTGRES_DB=onlinejudge -e POSTGRES_USER=onlinejudge -e POSTGRES_PASSWORD=onlinejudge -p 127.0.0.1:5433:5432 postgres:10
|
- docker run -it -d -e POSTGRES_DB=onlinejudge -e POSTGRES_USER=onlinejudge -e POSTGRES_PASSWORD=onlinejudge -p 127.0.0.1:5433:5432 postgres:10
|
||||||
install:
|
install:
|
||||||
- pip install -r deploy/requirements.txt
|
- pip install -r deploy/requirements.txt
|
||||||
- cp oj/custom_settings.example.py oj/custom_settings.py
|
- echo `cat /dev/urandom | head -1 | md5sum | head -c 32` > data/config/secret.key
|
||||||
- echo "SECRET_KEY=\"`cat /dev/urandom | head -1 | md5sum | head -c 32`\"" >> oj/custom_settings.py
|
|
||||||
- sleep 10 && python manage.py migrate
|
- sleep 10 && python manage.py migrate
|
||||||
script:
|
script:
|
||||||
- docker ps -a
|
- docker ps -a
|
||||||
|
0
data/config/.gitkeep
Normal file
0
data/config/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user