Skip to content

Commit

Permalink
feat(template): review PR 207
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Dec 17, 2020
1 parent a821435 commit 3f612cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions ssf/files/default/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,13 @@ jobs:
- env: 'Conversion'
name: 'Test: bin/convert-formula.sh'
script:
- git clone . tmp/converted-formula
- cd tmp/converted-formula
- DEBUG=true bin/convert-formula.sh converted
- export CONVERTED=test-the-use_this_template-button
- git clone . tmp/"$CONVERTED"-formula
- cd tmp/"$CONVERTED"-formula
- pyenv global 3.8
- pip install pre-commit==2.7.1
- bin/install-hooks
- DEBUG=true bin/convert-formula.sh "$CONVERTED"
- '[ $(git rev-list HEAD --count) -eq 2 ]'
# Quick visual check that correct files have been updated
- git show --pretty="" --name-status
Expand Down
3 changes: 2 additions & 1 deletion ssf/files/default/inspec/inspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ maintainer: SaltStack Formulas
license: Apache-2.0
{%- set summary_heading = 'summary: ' %}
{%- set summary_chars = summary_heading | length + suite.inspec_yml.summary | length %}
{%- if summary_chars > yamllint.rules.get('line-length').max %}
{%- if (summary_chars > yamllint.rules.get('line-length').max) or
([semrel_formula, suite.name] == ['TEMPLATE', 'default']) %}
# yamllint disable-line rule:line-length
{%- endif %}
{{ summary_heading }}{{ suite.inspec_yml.summary }}
Expand Down

0 comments on commit 3f612cf

Please sign in to comment.