加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 787 Bytes
一键复制 编辑 原始数据 按行查看 历史
language: python
cache: pip
before_cache:
- rm ~/.cache/pip/log/debug.log
python:
- "3.6"
jobs:
include:
- name: cardboard linter
install:
- pip install --upgrade cardboardlint pylint
script: |
# Run cardboardlinter, in case of pull requests
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
if [ "$TRAVIS_BRANCH" != "master" ]; then
git fetch origin $TRAVIS_BRANCH:$TRAVIS_BRANCH
fi
cardboardlinter --refspec $TRAVIS_BRANCH -n auto;
fi
- name: python unit tests
install:
- pip install --upgrade -r requirements_tests.txt;
pip install --upgrade .
script:
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
python -m unittest;
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化