Skip to content

Instantly share code, notes, and snippets.

@masutaka
Last active January 27, 2019 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masutaka/38d61de4decafa19be7207f68f694b3b to your computer and use it in GitHub Desktop.
Save masutaka/38d61de4decafa19be7207f68f694b3b to your computer and use it in GitHub Desktop.
A sample files of Heroku CI
{
"environments": {
"test": {
"scripts": {
"test-setup": "./script/test-setup",
"test": "./script/test"
}
}
}
}
#!/bin/sh -eux
./hadolint Dockerfile*
./shellcheck script/*
#!/bin/sh -eux
## hadolint
HADOLINT_VERSION=v1.15.0
curl -sLo hadolint https://github.com/hadolint/hadolint/releases/download/${HADOLINT_VERSION}/hadolint-Linux-x86_64
chmod 500 hadolint
./hadolint -v
## shellcheck
curl -s https://storage.googleapis.com/shellcheck/shellcheck-stable.linux.x86_64.tar.xz | \
tar xvJf - --strip-components=1 shellcheck-stable/shellcheck
./shellcheck -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment