Skip to content
Permalink
Browse files

Run shellcheck on Circle CI

  • Loading branch information
pmeinhardt committed Nov 3, 2019
1 parent ec02f75 commit 009cb141e2227c6c0612f09e4ac6200ff646ae84
Showing with 34 additions and 4 deletions.
  1. +16 −1 .circleci/config.yml
  2. +6 −1 script/bootstrap
  3. +6 −1 script/reboot
  4. +6 −1 script/update
@@ -1,6 +1,15 @@
version: 2
jobs:
build:
shell-check:
working_directory: ~/huck-up
docker:
- image: koalaman/shellcheck-alpine:stable
steps:
- checkout
- run:
name: Check Scripts
command: shellcheck script/*
ansible-lint:
working_directory: ~/huck-up
docker:
- image: circleci/python:3.8
@@ -25,3 +34,9 @@ jobs:
paths:
- "/usr/local/bin"
- "/usr/local/lib/python3.8/site-packages"
workflows:
version: 2
checks:
jobs:
- shell-check
- ansible-lint
@@ -1,8 +1,13 @@
#!/usr/bin/env bash

set -o errexit
set -o pipefail
set -o nounset

cd "$(dirname "$0")/.."

exec ansible-playbook \
--inventory=raspberries \
--ask-pass \
base.yml \
$@
"$@"
@@ -1,9 +1,14 @@
#!/usr/bin/env bash

set -o errexit
set -o pipefail
set -o nounset

cd "$(dirname "$0")/.."

exec ansible \
--inventory=raspberries \
--args="/sbin/reboot" \
--become \
raspberries \
$@
"$@"
@@ -1,7 +1,12 @@
#!/usr/bin/env bash

set -o errexit
set -o pipefail
set -o nounset

cd "$(dirname "$0")/.."

exec ansible-playbook \
--inventory=raspberries \
base.yml \
$@
"$@"

0 comments on commit 009cb14

Please sign in to comment.
You can’t perform that action at this time.