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