2019-04-03 20:12:31 +00:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#! nix-shell -i bash -p bash ruby bundler bundix
|
2019-06-14 16:18:16 +00:00
|
|
|
set -x
|
|
|
|
set -e
|
2019-04-03 20:12:31 +00:00
|
|
|
|
2019-06-04 16:50:29 +00:00
|
|
|
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
2019-06-14 16:18:16 +00:00
|
|
|
GIT_ROOT=$(cd "${BASH_SOURCE%/*}" && git rev-parse --show-toplevel)
|
|
|
|
|
|
|
|
rm -f "${GIT_ROOT}/fastlane/Gemfile.lock"
|
|
|
|
|
|
|
|
bundler install \
|
|
|
|
--gemfile="${GIT_ROOT}/fastlane/Gemfile" \
|
2019-06-04 16:50:29 +00:00
|
|
|
--path "${GIT_ROOT}/fastlane/.bundle/vendor"
|
2019-06-14 16:18:16 +00:00
|
|
|
bundix \
|
|
|
|
--gemfile="${GIT_ROOT}/fastlane/Gemfile" \
|
|
|
|
--lockfile="${GIT_ROOT}/fastlane/Gemfile.lock" \
|
|
|
|
--gemset="${GIT_ROOT}/fastlane/gemset.nix"
|
|
|
|
|
|
|
|
rm -rf "${GIT_ROOT}/fastlane/.bundle/vendor"
|
2019-04-03 20:12:31 +00:00
|
|
|
|
|
|
|
if [ "clean" == "$1" ]; then
|
|
|
|
rm -r ~/.gem
|
|
|
|
fi
|