mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-10 23:01:41 +00:00

* Semi-automated using https://github.com/myii/ssf-formula/pull/27 * Fix errors shown below: ```bash bind-formula$ yamllint -s . ./pillar-with-views.example 1:1 warning missing document start "---" (document-start) 2:89 error line too long (93 > 88 characters) (line-length) 4:89 error line too long (98 > 88 characters) (line-length) 5:51 warning comment not indented like content (comments-indentation) 5:89 error line too long (90 > 88 characters) (line-length) 6:1 error trailing spaces (trailing-spaces) 8:89 error line too long (104 > 88 characters) (line-length) 10:89 error line too long (104 > 88 characters) (line-length) 11:89 error line too long (114 > 88 characters) (line-length) 12:89 error line too long (116 > 88 characters) (line-length) 14:1 error trailing spaces (trailing-spaces) 16:89 error line too long (121 > 88 characters) (line-length) 18:89 error line too long (108 > 88 characters) (line-length) 20:89 error line too long (97 > 88 characters) (line-length) 22:89 error line too long (106 > 88 characters) (line-length) 23:22 warning truthy value should be one of [false, true] (truthy) 23:89 error line too long (97 > 88 characters) (line-length) 24:51 warning comment not indented like content (comments-indentation) 24:89 error line too long (110 > 88 characters) (line-length) 24:110 error trailing spaces (trailing-spaces) 25:89 error line too long (122 > 88 characters) (line-length) 26:19 warning truthy value should be one of [false, true] (truthy) 27:19 warning truthy value should be one of [false, true] (truthy) 29:89 error line too long (113 > 88 characters) (line-length) 31:89 error line too long (98 > 88 characters) (line-length) 33:89 error line too long (104 > 88 characters) (line-length) 35:89 error line too long (101 > 88 characters) (line-length) 36:51 warning comment not indented like content (comments-indentation) 36:89 error line too long (112 > 88 characters) (line-length) 36:112 error trailing spaces (trailing-spaces) 37:89 error line too long (122 > 88 characters) (line-length) 38:22 warning truthy value should be one of [false, true] (truthy) 39:19 warning truthy value should be one of [false, true] (truthy) 40:19 warning truthy value should be one of [false, true] (truthy) 43:89 error line too long (96 > 88 characters) (line-length) 44:89 error line too long (119 > 88 characters) (line-length) 45:51 warning comment not indented like content (comments-indentation) 46:1 error trailing spaces (trailing-spaces) 50:89 error line too long (99 > 88 characters) (line-length) 57:89 error line too long (89 > 88 characters) (line-length) 70:1 error trailing spaces (trailing-spaces) 71:89 error line too long (96 > 88 characters) (line-length) 72:89 error line too long (119 > 88 characters) (line-length) 73:51 warning comment not indented like content (comments-indentation) 74:1 error trailing spaces (trailing-spaces) 78:89 error line too long (99 > 88 characters) (line-length) 85:89 error line too long (89 > 88 characters) (line-length) 87:89 error line too long (110 > 88 characters) (line-length) ```
86 lines
2.7 KiB
YAML
86 lines
2.7 KiB
YAML
# -*- coding: utf-8 -*-
|
|
# vim: ft=yaml
|
|
---
|
|
dist: bionic
|
|
stages:
|
|
- test
|
|
- lint
|
|
- name: release
|
|
if: branch = master AND type != pull_request
|
|
|
|
sudo: required
|
|
cache: bundler
|
|
language: ruby
|
|
|
|
services:
|
|
- docker
|
|
|
|
# Make sure the instances listed below match up with
|
|
# the `platforms` defined in `kitchen.yml`
|
|
env:
|
|
matrix:
|
|
- INSTANCE: default-debian-10-develop-py3
|
|
# - INSTANCE: default-ubuntu-1804-develop-py3
|
|
# - INSTANCE: default-centos-7-develop-py3
|
|
# - INSTANCE: default-fedora-30-develop-py3
|
|
# - INSTANCE: default-opensuse-leap-15-develop-py3
|
|
# - INSTANCE: default-amazonlinux-2-develop-py2
|
|
# - INSTANCE: default-debian-9-2019-2-py3
|
|
- INSTANCE: default-ubuntu-1804-2019-2-py3
|
|
# - INSTANCE: default-centos-7-2019-2-py3
|
|
# - INSTANCE: default-fedora-30-2019-2-py3
|
|
# - INSTANCE: default-opensuse-leap-15-2019-2-py3
|
|
- INSTANCE: default-amazonlinux-2-2019-2-py2
|
|
# - INSTANCE: default-debian-9-2018-3-py2
|
|
# - INSTANCE: default-ubuntu-1604-2018-3-py2
|
|
# - INSTANCE: default-centos-7-2018-3-py2
|
|
- INSTANCE: default-fedora-29-2018-3-py2
|
|
- INSTANCE: default-opensuse-leap-15-2018-3-py2
|
|
# - INSTANCE: default-amazonlinux-2-2018-3-py2
|
|
# - INSTANCE: default-debian-8-2017-7-py2
|
|
# - INSTANCE: default-ubuntu-1604-2017-7-py2
|
|
- INSTANCE: default-centos-6-2017-7-py2
|
|
# - INSTANCE: default-fedora-29-2017-7-py2
|
|
# - INSTANCE: default-opensuse-leap-15-2017-7-py2
|
|
# - INSTANCE: default-amazonlinux-2-2017-7-py2
|
|
|
|
script:
|
|
- bin/kitchen verify ${INSTANCE}
|
|
|
|
jobs:
|
|
include:
|
|
# Define the `lint` stage (runs `yamllint` and `commitlint`)
|
|
- stage: lint
|
|
language: node_js
|
|
node_js: lts/*
|
|
before_install: skip
|
|
script:
|
|
# Install and run `yamllint`
|
|
# Need at least `v1.17.0` for the `yaml-files` setting
|
|
- pip install --user yamllint>=1.17.0
|
|
- yamllint -s .
|
|
# Install and run `commitlint`
|
|
- npm install @commitlint/config-conventional -D
|
|
- npm install @commitlint/travis-cli -D
|
|
- commitlint-travis
|
|
# Define the release stage that runs `semantic-release`
|
|
- stage: release
|
|
language: node_js
|
|
node_js: lts/*
|
|
before_install: skip
|
|
script:
|
|
# Update `AUTHORS.md`
|
|
- export MAINTAINER_TOKEN=${GH_TOKEN}
|
|
- go get github.com/myii/maintainer
|
|
- maintainer contributor
|
|
|
|
# Install all dependencies required for `semantic-release`
|
|
- npm install @semantic-release/changelog@3 -D
|
|
- npm install @semantic-release/exec@3 -D
|
|
- npm install @semantic-release/git@7 -D
|
|
deploy:
|
|
provider: script
|
|
skip_cleanup: true
|
|
script:
|
|
# Run `semantic-release`
|
|
- npx semantic-release@15
|