#!/usr/bin/env bash set -x set -e ruby=ruby2.2 version=$(cat VERSION) rm -rf etc rm -rf tmp rm -rf .bundle rm -rf .vagrant 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 art # robit version mkdir -p /artifacts mv *.deb /artifacts