Skip to content

Commit

Permalink
Test Shell scripts with shellcheck in CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
ypid committed Sep 6, 2016
1 parent afca252 commit 7c2facb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ install: True

script:
- 'git clone --depth 1 https://github.com/nickjj/rolespec'
- 'cd rolespec ; bin/rolespec -r https://github.com/debops/test-suite'
- 'cd rolespec ; bin/rolespec -r https://github.com/debops/test-suite ; cd -'

# We know the scripts are not perfect. Please don’t add more things that shellcheck v0.4.4 will complain about!
- 'shellcheck --format=json ./files/secret/pki/lib/pki-authority | jq --exit-status "(. | length) <= 74"'
- 'shellcheck --format=json ./files/usr/local/lib/pki/pki-realm | jq --exit-status "(. | length) <= 105"'

notifications:
webhooks:
- 'https://galaxy.ansible.com/api/v1/notifications/'

0 comments on commit 7c2facb

Please sign in to comment.