jekyll-algolia/scripts/test_integration_prepare

25 lines
484 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [[ -z "$ALGOLIA_APPLICATION_ID" ]]; then
echo "You need to set ALGOLIA_APPLICATION_ID"
exit 1
fi
if [[ -z "$ALGOLIA_API_KEY" ]]; then
echo "You need to set ALGOLIA_API_KEY"
exit 1
fi
if [[ -z "$ALGOLIA_INDEX_NAME" ]]; then
echo "You need to set ALGOLIA_INDEX_NAME"
exit 1
fi
cd ./spec/site
bundle install --quiet
bundle exec jekyll build --trace
rake test:integration:_delete_indices
bundle exec jekyll algolia --trace