1 Star 0 Fork 3

DrLaiSan/webpy

forked from Gitee 极速下载/webpy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
language: python
python:
- 2.7
- 3.5
- 3.6
- 3.7
services:
- mysql
- postgresql
before_install:
- sudo mkdir -p /usr/include/postgresql/8.4/server
# - 'sudo apt-get -o Dpkg::Options::="--force-overwrite" install python-profiler'
install:
- pip install flake8 markdown pytest-cov -r requirements.txt -r test_requirements.txt
before_script:
- if [ "$TRAVIS_PYTHON_VERSION" = "3.7" ]; then
pip install black;
black --check .;
fi
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- psql -c 'create database webpy;' -U postgres
- mysql --user=root -e "create user 'scott'@'localhost' identified by 'tiger'; create database webpy; grant all privileges on webpy.* to 'scott'@'localhost' with grant option;"
script: pytest --cov --cov-report=term-missing --cov-report=xml
after_success:
- |
flags=py${TRAVIS_PYTHON_VERSION//./}
bash <(curl -s https://codecov.io/bash) -Z -X gcov -X search -X xcode -X fix -X coveragepy -f coverage.xml -F "$flags"
notifications:
irc: irc.freenode.org#webpy
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Laisan/webpy.git
git@gitee.com:Laisan/webpy.git
Laisan
webpy
webpy
master

搜索帮助