Skip to content

Commit dae51e4

Browse files
committed
.travis.yml: Require mobans are in sync on master
1 parent 001c4fa commit dae51e4

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.ci/check_moban.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
: "${MOBAN_BRANCH:=master}"
6+
7+
git clone https://gitlab.com/coala/mobans \
8+
--branch=${MOBAN_BRANCH} ../coala-mobans
9+
10+
moban
11+
git diff --exit-code

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,26 @@ cache:
99
script:
1010
- make html SPHINXOPTS=-W
1111

12+
.check_moban_master: &check_moban_master
13+
python: 3.6
14+
stage: moban
15+
install: pip install moban
16+
script: .ci/check_moban.sh
17+
if: branch = master AND type != pull_request
18+
19+
.check_moban_other: &check_moban_other
20+
<<: *check_moban_master
21+
if: branch != master OR type = pull_request
22+
23+
# env forces jobs to be created from the top level settings
24+
env:
25+
jobs:
26+
include:
27+
- *check_moban_master
28+
- *check_moban_other
29+
allow_failures:
30+
- *check_moban_other
31+
1232
notifications:
1333
email: false
1434
webhooks: https://www.travisbuddy.com/

0 commit comments

Comments
 (0)