Skip to content

Instantly share code, notes, and snippets.

@colmjude
Created September 1, 2014 15:59
Show Gist options
  • Save colmjude/e720a2057a3a598b9bce to your computer and use it in GitHub Desktop.
Save colmjude/e720a2057a3a598b9bce to your computer and use it in GitHub Desktop.
I kept having to remember where I'd recorded what steps I needed to take to load in some useful test data so hopefully this will make things easier. Usage instructions below.
#!/bin/bash
OLDPWD=$(pwd)
cd apps/service-frontend/ && ./create-user-for-integration-tests.sh && cd "$OLDPWD"
cd apps/casework-frontend/ && ./create-user-for-integration-tests.sh && cd "$OLDPWD"
if [ -z "$1" ] ; then
echo "No argument supplied; loading 1 title"
cd apps/generate-test-data/ && ./load_test_data_into_dev_environment.sh 1 && cd "$OLDPWD"
else
cd apps/generate-test-data/ && ./load_test_data_into_dev_environment.sh "$1" && cd "$OLDPWD"
fi
@colmjude
Copy link
Author

colmjude commented Sep 1, 2014

To use just pop it in your development-environment dir and run from vagrant using
./lr-dev-env-pop.sh
If you wish to add more than 1 title of test data add the number at the end
./lr-dev-env-pop.sh 25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment