File tree 5 files changed +195
-134
lines changed
5 files changed +195
-134
lines changed Original file line number Diff line number Diff line change 3
3
---
4
4
stages :
5
5
- test
6
- - commitlint
6
+ - lint
7
7
- name : release
8
8
if : branch = master AND type != pull_request
9
9
@@ -45,16 +45,21 @@ script:
45
45
46
46
jobs :
47
47
include :
48
- # Define the commitlint stage
49
- - stage : commitlint
48
+ # Define the `lint` stage (runs `yamllint` and `commitlint`)
49
+ - stage : lint
50
50
language : node_js
51
51
node_js : lts/*
52
52
before_install : skip
53
53
script :
54
+ # Install and run `yamllint`
55
+ - pip install --user yamllint
56
+ # yamllint disable-line rule:line-length
57
+ - yamllint -s . .yamllint pillar.example test/salt/default/pillar/nginx.sls
58
+ # Install and run `commitlint`
54
59
- npm install @commitlint/config-conventional -D
55
60
- npm install @commitlint/travis-cli -D
56
61
- commitlint-travis
57
- # Define the release stage that runs semantic-release
62
+ # Define the release stage that runs ` semantic-release`
58
63
- stage : release
59
64
language : node_js
60
65
node_js : lts/*
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ # vim: ft=yaml
3
+ ---
4
+ # Extend the `default` configuration provided by `yamllint`
5
+ extends : default
6
+
7
+ # Files to ignore completely
8
+ # 1. All YAML files under directory `node_modules/`, introduced during the Travis run
9
+ ignore : |
10
+ node_modules/
11
+
12
+ rules :
13
+ line-length :
14
+ # Increase from default of `80`
15
+ # Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
16
+ max : 88
You can’t perform that action at this time.
0 commit comments