代码拉取完成,页面将自动刷新
language: python
python:
- "3.4"
- "3.6"
sudo: required
env:
global:
- FLASK_CONFIG="testing"
services:
- mysql
addons:
apt:
packages:
- nginx
hosts:
- cronmon.yoursite.io
before_install:
- mysql -e 'create database `cronmon` /*!40100 DEFAULT CHARACTER SET utf8 */;'
- mysql -e 'grant all on cronmon.* to cronmon_user@127.0.0.1 identified by "cronmon_pwd";'
install:
- pip install -r requirements.txt
- sudo cp tests/cronmon_test.conf /etc/nginx/conf.d/
before_script:
- python migrate.py init
- python migrate.py sample
- sudo service nginx restart
- echo "var:"$FLASK_CONFIG
script:
- python -m pytest --verbose --cov=cronmon --cov-report=term-missing
after_success:
- travis_retry pip install coveralls
- coveralls
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。