-
Notifications
You must be signed in to change notification settings - Fork 0
/
runTest.sh
34 lines (29 loc) · 1.08 KB
/
runTest.sh
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
#!/bin/bash
# we store all the passwords in the local .env file
echo -e '\n=> Exporting secrets'
if [ -f .env ]
then
# export "$(cat .env | xargs)"
source .env
# echo $DEVICE_CLOUD_USERNAME
else
echo -e '\n=> No env file found abborting operation'
echo "Missing .env file!" > logfile.log
echo -e '\n=> Done'
exit 125
fi
echo -e '\n=> Done'
# echo -e '\n=> uploading the app'
# ./upload_app_to_SL.sh $DEVICE_CLOUD_USERNAME $DEVICE_CLOUD_ACCESS_KEY /$APP_APK_LOCATION "Android Bifold ON App" api.us-west-1
# echo -e '\n=> Done'
echo -e '\n=> Removing all Dangling images'
docker rmi "$(docker images --filter "dangling=true" -q --no-trunc)"
echo -e '\n=> Done'
echo -e '\n=> Clean build'
./manage build -w ODS -i acapy-main -v acapy-main
echo -e '\n=> Done'
# testing
echo -e '\n=> Starting the saucy tests'
LEDGER_URL_CONFIG=http://test.bcovrin.vonx.io REGION=us-west-1 ./manage run -d SauceLabs -u $DEVICE_CLOUD_USERNAME -k $DEVICE_CLOUD_ACCESS_KEY -p Android -a $APP_NAME.apk -i acapy-main -v acapy-main -t @connect
# NOTE: replace @connect with your feature file
echo -e '\n=> Done'