diff --git a/.ci/check_moban.sh b/.ci/check_moban.sh new file mode 100755 index 0000000..b44fa88 --- /dev/null +++ b/.ci/check_moban.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -ex + +: "${MOBAN_BRANCH:=master}" + +if [ ! -d ../coala-mobans ]; then + git clone https://gitlab.com/coala/mobans \ + --branch=${MOBAN_BRANCH} ../coala-mobans +fi + +moban +git diff --exit-code diff --git a/.moban.yaml b/.moban.yaml index 7576425..90ab43f 100644 --- a/.moban.yaml +++ b/.moban.yaml @@ -51,3 +51,4 @@ targets: - coala_quickstart/__init__.py: __init__.py.jj2 - .ci/appveyor.yml: ci/appveyor.yml.jj2 - .ci/run_with_env.cmd: run_with_env.cmd + - .ci/check_moban.sh: ci/check_moban.sh diff --git a/.travis.yml b/.travis.yml index baf6edd..037fefb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,15 +4,32 @@ python: - 3.5 - 3.6 +stages: + - test + - moban + +.disable_global: &disable_global + before_install: false + install: false + script: false + +.check_moban: &check_moban + <<: *disable_global + python: 3.6 + stage: moban + install: pip install moban + script: .ci/check_moban.sh + +jobs: + include: + - *check_moban + cache: pip: true before_install: - pip install setuptools -U - pip install -r requirements.txt -r test-requirements.txt - - git clone https://gitlab.com/coala/mobans ../coala-mobans - - moban - - git diff --exit-code script: - pytest