1 Star 0 Fork 0

stoneqp/coala

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 3.77 KB
一键复制 编辑 原始数据 按行查看 历史
Abhinav Kaushlya 提交于 2020-05-02 20:51 . .travis.yml: Fix unsupported job
sudo: false
dist: xenial
language: python
notifications:
email: false
python:
- 3.5
stages:
- name: sentinel
if: branch != master OR type = pull_request
- test
- moban
- name: unsupported
if: branch = master AND type = push
.disable_global: &disable_global
addons: {}
cache: false
env: {}
before_install: []
install: []
before_script: []
script: []
after_success: []
after_failure: []
before_deploy: []
deploy: {}
.moban: &moban
<<: *disable_global
python: 3.6
stage: moban
install: pip install moban~=0.5.0 gitfs2 pypifs
script:
- moban
- git diff --exit-code
jobs:
include:
- stage: sentinel
# All other jobs will be cancelled if the sentinel job fails
python: 3.6
- stage: test
# The sentinel job isnt active on master pushes, so the
# job is re-added to the bottom of the test matrix
python: 3.6
if: branch = master AND type = push
# OSX build removed due to long build startup delays
# Restore matrix job entry from d2d67fab to test OSX
- python: 2.7
<<: *disable_global
stage: unsupported
script: .misc/check_unsupported.sh
- python: 3.3
<<: *disable_global
stage: unsupported
script: .misc/check_unsupported.sh
dist: trusty
- python: 3.4
<<: *disable_global
stage: unsupported
script: .misc/check_unsupported.sh
- stage: moban
<<: *moban
if: branch = master AND type = push
- *moban
allow_failures:
- *moban
stage: test
env:
global:
- PATH="$PATH:$TRAVIS_BUILD_DIR/node_modules/.bin"
- BEARS_ZIP_URL=https://codeload.github.com/coala/coala-bears/zip
- GRAVIS="https://raw.githubusercontent.com/DanySK/Gravis-CI/master/"
- JDK="adopt@1.8.0-212"
cache:
pip: true
directories:
- node_modules
- docs/_build
- ~/nltk_data
- ~/.jabba
before_install:
- curl "${GRAVIS}.install-jdk-travis.sh" --output ~/.install-jdk-travis.sh
- >
if [[ $TRAVIS_OS_NAME == osx ]]; then
brew install python3
sudo ln -sf $(which python3) $(which python)
sudo ln -sf $(which pip3) $(which pip 2>/dev/null || echo /usr/bin/pip)
fi
# See rationale in .ci/deps.python-packages.ps1 for pre-installing these
- pip install --prefer-binary cffi lxml
# Use pip 9, so that setuptools can be downgraded.
# https://github.com/coala/coala/issues/4708
# Apart from builds with python 2.7 and 3.5, it installs setuptools
# twice. So, it is required to uninstall one version manually.
- pip uninstall setuptools --yes
- pip uninstall setuptools --yes || true
- pip uninstall setuptools --yes || true
- pip uninstall pipenv --yes || true
- pip install pip==9.0.1 setuptools==21.2.2
- python .misc/check_setuptools.py
# https://github.com/coala/coala/issues/3183
# Travis automatically installs the `requirements.txt` in "install" stage
- cp requirements.txt requirements.orig
- cat test-requirements.txt docs-requirements.txt >> requirements.txt
- sed -i.bak '/^-r/d' requirements.txt
# OSX is not a real Travis 'python' image, so it does not install
# requirements.txt automatically.
- if [[ $TRAVIS_OS_NAME == osx ]]; then pip install -r requirements.txt; fi
# For bears in .coafile requiring npm dependencies
- npm install --no-save
- source ~/.install-jdk-travis.sh
before_script:
# Restore the original requirements.txt
- mv requirements.orig requirements.txt
- python .misc/check_setuptools.py
script:
- py.test
- python setup.py bdist_wheel
- pip install ./dist/*.whl
- curl -fsSL -o coala-bears.zip $BEARS_ZIP_URL/master
- pip install coala-bears.zip[alldeps]
- coala --non-interactive
- python setup.py docs
- .ci/check_man.sh
after_success:
- codecov
after_failure:
- codecov
branches:
exclude:
- /^sils\//
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/stoneqp/coala.git
git@gitee.com:stoneqp/coala.git
stoneqp
coala
coala
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385