File tree Expand file tree Collapse file tree 5 files changed +195
-134
lines changed Expand file tree Collapse file tree 5 files changed +195
-134
lines changed Original file line number Diff line number Diff line change 33---
44stages :
55 - test
6- - commitlint
6+ - lint
77 - name : release
88 if : branch = master AND type != pull_request
99
@@ -45,16 +45,21 @@ script:
4545
4646jobs :
4747 include :
48- # Define the commitlint stage
49- - stage : commitlint
48+ # Define the `lint` stage (runs `yamllint` and `commitlint`)
49+ - stage : lint
5050 language : node_js
5151 node_js : lts/*
5252 before_install : skip
5353 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`
5459 - npm install @commitlint/config-conventional -D
5560 - npm install @commitlint/travis-cli -D
5661 - commitlint-travis
57- # Define the release stage that runs semantic-release
62+ # Define the release stage that runs ` semantic-release`
5863 - stage : release
5964 language : node_js
6065 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