mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-28 16:12:13 +00:00
cef608b809
Signed-off-by: Beichi-CHs <g841734459@126.com>
18 lines
440 B
YAML
18 lines
440 B
YAML
language: python
|
|
python:
|
|
- "3.8"
|
|
services:
|
|
- docker
|
|
- postgresql
|
|
install:
|
|
- pip install -r deploy/requirements.txt
|
|
- echo `cat /dev/urandom | head -1 | md5sum | head -c 32` > data/config/secret.key
|
|
- ./init_db.sh
|
|
script:
|
|
- docker ps -a
|
|
- flake8 --config=./.flake8 .
|
|
- coverage run --include="$PWD/*" manage.py test
|
|
- coverage report
|
|
notifications:
|
|
slack: onlinejudgeteam:BzBz8UFgmS5crpiblof17K2W
|