1 Star 0 Fork 0

peakmeans/pytorch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
azure-pipelines.yml 2.61 KB
一键复制 编辑 原始数据 按行查看 历史
Michael Suo 提交于 2019-08-10 13:27 . send flake8 to stderr (#24100)
trigger:
- master
jobs:
- job: consistent_circleci
displayName: "Ensure consistent CircleCI YAML"
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.7"
- script: pip install -r requirements.txt
- script: cd .circleci && ./ensure-consistency.py
- job: shellcheck_jenkins
displayName: "Shellcheck Jenkins scripts"
pool:
vmImage: 'Ubuntu 16.04'
steps:
- script: sudo apt-get install -y shellcheck
- script: .jenkins/run-shellcheck.sh
- job: ensure_no_tabs
displayName: "Ensure no tabs"
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "2.7"
- script: (! git grep -I -l $'\t' -- . ':(exclude)*.svg' ':(exclude)**Makefile' ':(exclude)**/contrib/**' ':(exclude)third_party' ':(exclude).gitattributes' ':(exclude).gitmodules' || (echo "The above files have tabs; please convert them to spaces"; false))
- job: python_27_lint
displayName: "Python 2.7 Lint"
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "2.7"
- script: pip install flake8
- script: |
rm -rf .circleci
flake8 1>&2
- job: python_37_lint
displayName: "Python 3.7 Lint"
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.7"
- script: pip install flake8 flake8-bugbear flake8-mypy flake8-comprehensions flake8-pyi mccabe pycodestyle pyflakes
- script: flake8 1>&2
- job: mypy_typecheck
displayName: "MyPy typecheck"
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.6"
- script: pip install mypy mypy-extensions
- script: mypy @mypy-files.txt
- job: cpp_doc_check
displayName: "CPP doc check"
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.6"
- script: sudo apt-get install -y doxygen && pip install -r requirements.txt
- script: cd docs/cpp/source && ./check-doxygen.sh
- job: clang_tidy
displayName: "clang tidy"
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.6"
- script: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main"
sudo apt-get update
sudo apt-get install -y clang-tidy-8
sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-8 1000
- script: git branch master origin/master
- script: pip install pyyaml
- script: tools/run-clang-tidy-in-ci.sh
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/peak_means/pytorch.git
git@gitee.com:peak_means/pytorch.git
peak_means
pytorch
pytorch
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385