From 540adc5bc4466e7f65fbbb7b150f83c2542ac73b Mon Sep 17 00:00:00 2001 From: thephez Date: Wed, 4 Oct 2017 08:45:49 -0400 Subject: [PATCH] Scripts for environment setup and frequently used builds --- init_env.sh | 9 +++++++++ scripts/build_preview.sh | 15 +++++++++++++++ scripts/build_publish_preview.sh | 11 +++++++++++ 3 files changed, 35 insertions(+) create mode 100755 init_env.sh create mode 100755 scripts/build_preview.sh create mode 100644 scripts/build_publish_preview.sh diff --git a/init_env.sh b/init_env.sh new file mode 100755 index 00000000..5275f936 --- /dev/null +++ b/init_env.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# Run before building to initialize Ruby stuff +# See docs/setting-up-your-environment.md for more info + +source ~/.rvm/scripts/rvm + +# Set default Ruby +rvm alias create default ruby-2.0.0 +rvm use default diff --git a/scripts/build_preview.sh b/scripts/build_preview.sh new file mode 100755 index 00000000..09e33d7e --- /dev/null +++ b/scripts/build_preview.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# Note: run init_env.sh first to prepare Ruby + +# See docs/setting-up-your-environment.md for more info +export BITCOINORG_BUILD_TYPE=preview + +# Update summaries.md +make manual-update-summaries-file + +# Build preview with minimal plugins +ENABLED_PLUGINS="glossary" ENABLED_LANGS="" make preview + +## Fast build and tests, takes less than 50 seconds +## Some tests may fail in fast mode; use -i to continue despite them +#ENABLED_PLUGINS="" ENABLED_LANGS="" make -i valid diff --git a/scripts/build_publish_preview.sh b/scripts/build_publish_preview.sh new file mode 100644 index 00000000..2178d4e3 --- /dev/null +++ b/scripts/build_publish_preview.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Build static preview site that can be hosted on Github pages (https://pages.github.com/) +# Note: run init_env.sh first to prepare Ruby + +export BITCOINORG_BUILD_TYPE=preview + +# Update summaries.md +make manual-update-summaries-file + +# Build preview with all plugins, but minimal language support +ENABLED_LANGS="" make preview