2016-03-28 18:53:43 +08:00
|
|
|
language: python
|
|
|
|
python:
|
2021-11-18 12:38:49 +08:00
|
|
|
- "3.8"
|
2017-10-31 21:08:06 +08:00
|
|
|
services:
|
|
|
|
- docker
|
2021-11-18 12:38:49 +08:00
|
|
|
- postgresql
|
2016-03-28 18:53:43 +08:00
|
|
|
install:
|
2021-11-18 12:38:49 +08:00
|
|
|
- pip install psycopg2
|
2017-01-23 16:05:52 +08:00
|
|
|
- pip install -r deploy/requirements.txt
|
2018-05-05 16:52:54 +08:00
|
|
|
- echo `cat /dev/urandom | head -1 | md5sum | head -c 32` > data/config/secret.key
|
2019-01-05 13:13:06 +08:00
|
|
|
- ./init_db.sh
|
2016-03-28 18:53:43 +08:00
|
|
|
script:
|
2017-10-31 21:08:06 +08:00
|
|
|
- docker ps -a
|
2021-11-18 12:38:49 +08:00
|
|
|
- flake8 --config=./.flake8 .
|
2017-11-23 21:12:37 +08:00
|
|
|
- coverage run --include="$PWD/*" manage.py test
|
2017-01-24 13:28:32 +08:00
|
|
|
- coverage report
|
2017-04-16 13:08:11 +08:00
|
|
|
notifications:
|
2021-11-18 12:38:49 +08:00
|
|
|
email:
|
|
|
|
- beichi.dev@gmail.com
|
|
|
|
- 841734459@qq.com
|