1 Star 0 Fork 353

zhangtaishan1/DjangoBlog

forked from 且听风吟/DjangoBlog 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 946 Bytes
一键复制 编辑 原始数据 按行查看 历史
且听风吟 提交于 2020-02-21 11:27 . 更新travis
dist: xenial
language: python
sudo: required
python:
- "3.6"
- "3.7"
- "3.8"
services:
- mysql
env:
global:
- DJANGO_SETTINGS_MODULE="travis_test.travis_settings"
branches:
only:
- master
# command to install dependencies
before_install:
- sudo apt-get update
- sudo apt-get install python-dev python3-dev libmysqlclient-dev -y
- sudo cp $TRAVIS_BUILD_DIR/travis_test/mysql.cnf /etc/mysql/conf.d/
- sudo service mysql restart
install:
- pip install -r requirements.txt
- pip install python-coveralls
- pip install coverage codecov
before_script:
- mysql -e 'CREATE DATABASE `djangoblog` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;'
- python manage.py makemigrations
- python manage.py migrate
- python manage.py collectstatic --noinput
- python manage.py compress --force
# command to run tests
script:
- coverage run manage.py test
after_success:
- coveralls
- codecov
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/zhangtashan/DjangoBlog.git
git@gitee.com:zhangtashan/DjangoBlog.git
zhangtashan
DjangoBlog
DjangoBlog
master

搜索帮助