Sha256: c476d771cad70151b264b6121cbd1395528093073965381d77018ed864a100c8
Contents?: true
Size: 740 Bytes
Versions: 1
Compression:
Stored size: 740 Bytes
Contents
#!/bin/sh LIB_NAME="raccoon" if [ $# -ne 2 ] then echo "Usage: $0 {version} {target}" exit 1 fi GEMSPEC="${LIB_NAME}.gemspec" PKG_FILE="${LIB_NAME}-$1.gem" echo "[RUN] gem install" bundle install echo "[RUN] rake" bundle exec rake if [ $? -eq 1 ] then exit 1 fi echo "[RUN] gem build ${GEMSPEC}" gem build ${GEMSPEC} if [ $? -eq 1 ] then exit 1 fi echo "[RUN] mv ${PKG_FILE} pkg/" mv ${PKG_FILE} ./pkg case "$2" in "install") echo "[RUN] rake install pkg/${PKG_FILE}" bundle exec rake install --trace ;; "deploy") echo "[RUN] gem push pkg/${PKG_FILE}" gem push pkg/${PKG_FILE} echo "[RUN] git tag -a version-$1" git tag -a version-$1 -m "" git push --tags ;; *) echo "FATAL: invalid target" exit 1 ;; esac
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
raccoon-0.0.1 | build_gem.sh |