From cbaca108b9a20adf3615a57acf0fd994aefde3de Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Wed, 11 Sep 2019 10:41:07 +0200 Subject: [PATCH 1/2] Add a Makefile Add a simple Makefile with a `validate` target to run `shellcheck -a` on the script. Signed-off-by: Valentin Rothberg --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..59c9bce --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +SRC := ./BuildSourceImage.sh + +all: validate + +.PHONY: validate +validate: $(SRC) + shellcheck -a $(SRC) From 9f4b80d0547324fa3d305deb22a262ce6a8fd43a Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Wed, 11 Sep 2019 10:50:25 +0200 Subject: [PATCH 2/2] Enable Travis CI Enable a simple CI via Travis which currently install skopeo and shellcheck and runs `make validate`. Fixes: #13 Signed-off-by: Valentin Rothberg --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..56d05f9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +sudo: required + +before_install: + - sudo add-apt-repository ppa:projectatomic/ppa --yes + - sudo apt-get update -qq + - sudo apt-get install -qq shellcheck skopeo + +script: + - make validate