-
Notifications
You must be signed in to change notification settings - Fork 268
Expand file tree
/
Copy pathdevtools
More file actions
executable file
·36 lines (33 loc) · 1.6 KB
/
devtools
File metadata and controls
executable file
·36 lines (33 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
cd ${0%/*}
echo " __"
echo " / _)"
echo " _.----._/ /"
echo " / /"
echo " __/ ( | ( |"
echo " /__.-'|_|--|_|"
echo ""
echo " C A S H M U S I C"
echo " DEVELOPER TOOLS AND STUFF"
echo ""
if [ "$1" = "vagrant" ]
then
echo "So you managed to type 'devtools' at least. What else do you want to do?"
select yn in "Run the test suite" "Run the test suite, skip seeds" "Add sample commerce data" "Reset all data"; do
case $yn in
"Run the test suite" ) php ./tests/php/all.php; php ./tests/php/test-uninstaller.php; break;;
"Run the test suite, skip seeds" ) php ./tests/php/all.php noseeds; php ./tests/php/test-uninstaller.php; break;;
"Add sample commerce data" ) php ./php/sample_commerce.php vagrant; break;;
"Reset all data" ) rm ../framework/db/cashmusic_vagrant.sqlite; php ../.vagrant_settings/vagrant_cashmusic_installer.php; break;;
esac
done
else
echo "So you managed to type 'devtools' at least. What else do you want to do?"
select yn in "Run the test suite" "Run the test suite, skip seeds" "Add sample commerce data"; do
case $yn in
"Run the test suite" ) php ./tests/php/all.php; php ./tests/php/test-uninstaller.php; break;;
"Run the test suite, skip seeds" ) php ./tests/php/all.php noseeds; php ./tests/php/test-uninstaller.php; break;;
"Add sample commerce data" ) php ./php/sample_commerce.php; break;;
esac
done
fi