Skip to content

Commit d7b88d5

Browse files
committed
changes to test script
1 parent 416e07d commit d7b88d5

File tree

1 file changed

+26
-18
lines changed

1 file changed

+26
-18
lines changed

scripts/build_fixtures.sh

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,35 @@
11
#!/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
67
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
148
php php/boot-fs.php products all || exit 1
159
php php/boot-fs.php sites create --name=behat-test --label=behattest --product='8c29aa27-21a3-4214-817e-c5c98c21b4cd' || exit 1
1610
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
1812
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
2032
php php/boot-fs.php site get-backup --site=behat-test --env=dev || exit 1
2133
php php/boot-fs.php site wipe --site=behat-test --env=dev || exit 1
2234
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

Comments
 (0)