Created
September 1, 2014 15:59
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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