OSDN Git Service

[add] : Added travis.yml
authorhayao <shun819.mail@gmail.com>
Sun, 27 Dec 2020 00:13:15 +0000 (09:13 +0900)
committerhayao <shun819.mail@gmail.com>
Sun, 27 Dec 2020 00:13:15 +0000 (09:13 +0900)
.travis.yml [new file with mode: 0644]
shellcheck.sh [new file with mode: 0755]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..673557d
--- /dev/null
@@ -0,0 +1,6 @@
+language: shell
+script:
+  - bash -c './shellcheck.sh'
+
+git:
+  submodules: false
diff --git a/shellcheck.sh b/shellcheck.sh
new file mode 100755 (executable)
index 0000000..98ffd63
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )"
+cd "${script_path}"
+
+/usr/bin/ls | grep -E 'alterlinux-*' | xargs -Ifile bash -c 'shopt -s globstar nullglob; shellcheck -s bash --exclude=SC2068 -S error ./file/file'
+bash -c 'shopt -s globstar nullglob; shellcheck -s bash --exclude=SC2068 -S error ./shellcheck.sh'