From 52948b2ed7d4c32d3211e0c178d641bd050d1b9b Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Wed, 27 Nov 2019 21:41:32 +0000 Subject: [PATCH] fix(travis): quote pathspecs used with `git ls-files` * https://github.com/saltstack-formulas/template-formula/pull/181#discussion_r351491871 --- .travis.yml | 4 ++-- ssf/defaults.yaml | 4 ++-- ssf/files/default/.travis.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index f59383e2..b2f03507 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,7 @@ jobs: script: # Install and run `salt-lint` - pip install --user salt-lint - - git ls-files -- *.sls *.jinja *.j2 *.tmpl *.tst + - git ls-files -- '*.sls' '*.jinja' '*.j2' '*.tmpl' '*.tst' | xargs salt-lint # Install and run `yamllint` # Need at least `v1.17.0` for the `yaml-files` setting @@ -40,7 +40,7 @@ jobs: - rubocop -d # Run `shellcheck` (already pre-installed in Travis) - shellcheck --version - - git ls-files -- *.sh *.bash *.ksh + - git ls-files -- '*.sh' '*.bash' '*.ksh' | xargs shellcheck # Install and run `commitlint` - npm i -D @commitlint/config-conventional diff --git a/ssf/defaults.yaml b/ssf/defaults.yaml index 4fc4d343..c119ef5e 100644 --- a/ssf/defaults.yaml +++ b/ssf/defaults.yaml @@ -22,8 +22,8 @@ ssf_node_anchors: # An alternative method could be to use: # `git describe --abbrev=0 --tags` # yamllint disable rule:line-length - title: 'feat: update deprecation version number in `semantic-release` run' - body: '* Automated using https://github.com/myii/ssf-formula/pull/104' + title: 'fix(travis): quote pathspecs used with `git ls-files` [skip ci]' + body: '* Automated using https://github.com/myii/ssf-formula/pull/107' # yamllint enable rule:line-length github: owner: 'saltstack-formulas' diff --git a/ssf/files/default/.travis.yml b/ssf/files/default/.travis.yml index 7b1b3720..d975abe9 100644 --- a/ssf/files/default/.travis.yml +++ b/ssf/files/default/.travis.yml @@ -128,7 +128,7 @@ jobs: {%- endif %} # Install and run `salt-lint` - {{ pip_cmd }} install --user salt-lint - - git ls-files -- *.sls *.jinja *.j2 *.tmpl *.tst + - git ls-files -- '*.sls' '*.jinja' '*.j2' '*.tmpl' '*.tst' | xargs salt-lint # Install and run `yamllint` # Need at least `v1.17.0` for the `yaml-files` setting @@ -139,7 +139,7 @@ jobs: {%- endif %} # Run `shellcheck` (already pre-installed in Travis) - shellcheck --version - - git ls-files -- *.sh *.bash *.ksh + - git ls-files -- '*.sh' '*.bash' '*.ksh' | xargs shellcheck # Install and run `commitlint` - npm i -D @commitlint/config-conventional