File tree 7 files changed +38
-6
lines changed
7 files changed +38
-6
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
@@ -33,16 +33,21 @@ script:
33
33
34
34
jobs :
35
35
include :
36
- # Define the commitlint stage
37
- - stage : commitlint
36
+ # Define the `lint` stage (runs `yamllint` and `commitlint`)
37
+ - stage : lint
38
38
language : node_js
39
39
node_js : lts/*
40
40
before_install : skip
41
41
script :
42
+ # Install and run `yamllint`
43
+ - pip install --user yamllint
44
+ # yamllint disable-line rule:line-length
45
+ - yamllint -s . .yamllint pillar.example test/salt/pillar/repositories.pillar.sls test/salt/pillar/preferences.pillar.sls
46
+ # Install and run `commitlint`
42
47
- npm install @commitlint/config-conventional -D
43
48
- npm install @commitlint/travis-cli -D
44
49
- commitlint-travis
45
- # Define the release stage that runs semantic-release
50
+ # Define the release stage that runs ` semantic-release`
46
51
- stage : release
47
52
language : node_js
48
53
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
Original file line number Diff line number Diff line change 4
4
apt :
5
5
# Set the right keyring for the distro (ie ubuntu-keyring or ...)
6
6
keyring_package : debian-archive-keyring
7
-
7
+
8
8
remove_sources_list : true
9
9
clean_sources_list_d : true
10
10
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ # vim: ft=yaml
3
+ ---
1
4
name : preferences
2
5
title : apt formula
3
6
maintainer : SaltStack Formulas
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ # vim: ft=yaml
3
+ ---
1
4
name : repositories
2
5
title : apt formula
3
6
maintainer : SaltStack Formulas
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ # vim: ft=yaml
3
+ ---
1
4
apt :
2
5
remove_preferences : true
3
6
clean_preferences_d : true
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ # vim: ft=yaml
3
+ ---
1
4
apt :
2
5
remove_sources_list : true
3
6
clean_sources_list_d : true
16
19
arch : [amd64]
17
20
comps : []
18
21
key_url : https://cli-assets.heroku.com/apt/release.key
19
-
You can’t perform that action at this time.
0 commit comments