|
1 | 1 | #!/bin/bash |
2 | | - |
3 | | -if [[ $USE_FIXTURES != 1 ]]; then |
4 | | - # if USE_FIXTURES is set then we're probably on travis |
5 | | - export BUILD_FIXTURES=1 |
| 2 | +export TERMINUS_HOST='onebox'; |
| 3 | +php php/boot-fs.php auth logout || exit 1 |
| 4 | +php php/boot-fs.php auth login [email protected] --password=chicago77 || exit 1 |
| 5 | +if [[ $( php php/boot-fs.php sites show | grep 'behat-test' ) ]]; then |
| 6 | + php php/boot-fs.php sites delete --site=behat-test --force |
6 | 7 | fi |
7 | | - |
8 | | -if [[ $BUILD_FIXTURE == 1 ]]; then |
9 | | - php php/boot-fs.php auth logout || exit 1 |
10 | | - php php/boot-fs.php auth login [email protected] --password=testpasswordforbehatdude || exit 1 |
11 | | -fi |
12 | | - |
13 | | -php php/boot-fs.php sites show || exit 1 |
14 | 8 | php php/boot-fs.php products all || exit 1 |
15 | 9 | php php/boot-fs.php sites create --name=behat-test --label=behattest --product='8c29aa27-21a3-4214-817e-c5c98c21b4cd' || exit 1 |
16 | 10 | php php/boot-fs.php site info --site=behat-test --nocache=1 || exit 1 |
17 | | -php php/boot-fs.php site backup-make --site=behat-test --env=dev || exit 1 |
| 11 | +php php/boot-fs.php site backup create --site=behat-test --env=dev || exit 1 |
18 | 12 | php php/boot-fs.php site environments --site=behat-test || exit 1 |
19 | | -php php/boot-fs.php site backups --site=behat-test || exit 1 |
| 13 | +php php/boot-fs.php site backup get --site=behat-test --env=dev || exit 1 |
| 14 | +php php/boot-fs.php site code log --site=behat-test || exit 1 |
| 15 | +php php/boot-fs.php site connection-mode --site=behat-test --env=dev |
| 16 | +php php/boot-fs.php site connection-mode --site=behat-test --env=dev --set=git |
| 17 | +php php/boot-fs.php site connection-mode --site=behat-test --env=dev | grep "git" || exit 1 |
| 18 | +php php/boot-fs.php site connection-mode --site=behat-test --env=dev --set=sftp |
| 19 | +php php/boot-fs.php site mount --site=behat-test --destination=/home/vagrant/mount --env=dev |
| 20 | +echo "//testing" >> /home/vagrant/mount/code/index.php |
| 21 | +php php/boot-fs.php site code commit --site=behat-test --env-dev --message='Testing onserver code' |
| 22 | +php php/boot-fs.php site connection-mode --site=behat-test --env=dev --set=git |
| 23 | +php php/boot-fs.php site service-level --site=behat-test |
| 24 | +php php/boot-fs.php site redis --site=behat-test |
| 25 | +php php/boot-fs.php site newrelic --site=behat-test |
| 26 | +php php/boot-fs.php site lock info --site=behat-test --env=dev |
| 27 | +php php/boot-fs.php site lock add --site=behat-test --env=dev --username=test --password=test |
| 28 | +php php/boot-fs.php site lock remove --site=behat-test --env=dev --username=test --password=test |
| 29 | +php php/boot-fs.php site upstream-info --site=behat-test |
| 30 | +php php/boot-fs.php site dashboard --site=behat-test |
| 31 | +php php/boot-fs.php site clear-caches --site=behat-test --env=dev |
20 | 32 | php php/boot-fs.php site get-backup --site=behat-test --env=dev || exit 1 |
21 | 33 | php php/boot-fs.php site wipe --site=behat-test --env=dev || exit 1 |
22 | 34 | php php/boot-fs.php sites delete --site=behat-test --force || exit 1 |
23 | | - |
24 | | -if [[ $BUILD_FIXTURES == 1 ]]; then |
25 | | - # if building fixtures disable know that we are done |
26 | | - export BUILD_FIXTURES=0 |
27 | | -fi |
| 35 | +unset -v TERMINUS_HOST |
0 commit comments