Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk committed Dec 6, 2021
1 parent d546af1 commit af75f25
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .shellcheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
shell=bash

enable=quote-safe-variables

disable=1091,2030,2031,2034
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SHELL := bash
SHELL_FILES := $(shell file --mime-type bin/* | grep text/x-shellscript | cut -d: -f1)

export ROOT := $(shell pwd)

Expand Down Expand Up @@ -50,7 +51,7 @@ test:
make clean

style-check:
file --mime-type bin/* | grep text/x-shellscript | cut -d: -f1 | xargs shellcheck
shellcheck $(SHELL_FILES)

add-new:
for f in new/*; do cp "$$f" "src/$${f#*-}"; done
Expand Down
4 changes: 3 additions & 1 deletion bin/new-test-file
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env bash

# shellcheck disable=2034
version=0.0.1

# shellcheck disable=1090
source "${ROOT:-$PWD}/.bpan/run-or-docker.bash"

check() (
Expand Down Expand Up @@ -37,7 +39,7 @@ main() (
)

template() (
# shellcheck disable=SC1039
# shellcheck disable=1039
cat <<...
---
- name: <test title>
Expand Down
2 changes: 2 additions & 0 deletions bin/suite-to-data
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
#
#------------------------------------------------------------------------------

# shellcheck disable=2034
version=0.0.5

RUN_OR_DOCKER_PULL=true

# shellcheck disable=1090
source "${ROOT:-$PWD}/.bpan/run-or-docker.bash"

check() (
Expand Down
1 change: 1 addition & 0 deletions bin/tsv-to-new
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ for line in "${each[@]}"; do
else
more=''
id=$("$bin/new-test-id")
# TODO
while [[ -f $dir/$id*.yaml ]]; do
id=$("$bin/new-test-id")
done
Expand Down

0 comments on commit af75f25

Please sign in to comment.