Last active
January 27, 2019 13:04
-
-
Save masutaka/38d61de4decafa19be7207f68f694b3b to your computer and use it in GitHub Desktop.
A sample files of Heroku CI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"environments": { | |
"test": { | |
"scripts": { | |
"test-setup": "./script/test-setup", | |
"test": "./script/test" | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -eux | |
./hadolint Dockerfile* | |
./shellcheck script/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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