-
-
Save tzarskyz/6474755 to your computer and use it in GitHub Desktop.
This file contains 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 | |
set -eu | |
status () { | |
echo "---> ${@}" >&2 | |
} | |
abort () { | |
echo "$@" >&2 | |
exit 1 | |
} | |
main () { | |
cd "$(dirname "$0")" | |
cd .. | |
status "bundling for build" | |
bundle --path vendor/bundle \ | |
--deployment \ | |
--without NONEXISTENT >&2 # hack to make sure all groups are installed | |
status "fetching 3rd-party modules" | |
bundle exec librarian-puppet install >&2 | |
status "running tests" | |
bundle exec rake SPEC_OPTS="--format documentation" >&2 | |
status "bundling for deployment" | |
bundle --path vendor/bundle \ | |
--deployment \ | |
--standalone \ | |
--binstubs \ | |
--without build >&2 | |
bundle clean >&2 | |
status "creating tarball at puppet.tgz" | |
tar zcf puppet.tgz -X .buildignore . | |
} | |
main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment