#!/usr/bin/env bash set -x set -e ARTIFACTS="${1:-artifacts}" ruby=ruby2.2 version=$(cat VERSION) rm -rf doc rm -rf etc rm -rf tmp rm -rf .bundle rm -rf .vagrant rm -rf vendor rm -rf pkg mkdir -p pkg bundle update bundle package --all --all-platforms bundle exec fpm -n robit \ --after-install tasks/package/post-install.sh \ --after-upgrade tasks/package/post-install.sh \ -d "$ruby" -d "$ruby-dev" \ -d libxml2 -d libxml2-dev -d libxslt1-dev -d zlib1g-dev \ -s dir -t deb -v "$version" \ tasks/package/robit.sh=/usr/local/bin/robit \ ./=/opt/robit # gem uninstall -aIx # dpkg -i *.deb # ls -la /opt/robit # robit --help mkdir -p $ARTIFACTS mv *.deb $ARTIFACTS