Skip to content

Commit

Permalink
Merge pull request #201 from CircleCI-Public/orbs
Browse files Browse the repository at this point in the history
Use the shellcheck orb
  • Loading branch information
Zachary Scott authored Nov 17, 2018
2 parents 99e1457 + 65c2dc9 commit 99d204c
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: 2.1

orbs:
codecov: circleci/[email protected]
shellcheck: circleci/[email protected]

executors:
go:
Expand Down Expand Up @@ -119,18 +120,6 @@ jobs:
echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > .snapcraft/snapcraft.cfg
snapcraft push *.snap --release stable
shellcheck:
docker:
- image: nlknguyen/alpine-shellcheck:v0.4.6
steps:
- checkout
- run:
name: Check Scripts
command: |
find . -type f -name '*.sh' -not -path './vendor/*' > /tmp/files.txt
echo "Checking $(cat /tmp/files.txt | wc -l ) files"
cat /tmp/files.txt | xargs -t shellcheck --external-sources
brew-prepare:
machine: true
steps:
Expand Down Expand Up @@ -164,7 +153,8 @@ workflows:
version: 2
ci:
jobs:
- shellcheck
- shellcheck/check:
exclude: ./vendor/*
- test
- coverage
- lint
Expand All @@ -179,7 +169,7 @@ workflows:
- test
- coverage
- lint
- shellcheck
- shellcheck/check
filters:
branches:
only: master
Expand Down

0 comments on commit 99d204c

Please sign in to comment.