forked from mozilla-mobile/focus-ios
-
Notifications
You must be signed in to change notification settings - Fork 1
/
marketing.sh
executable file
·29 lines (24 loc) · 954 Bytes
/
marketing.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
#!/bin/bash
LANGUAGES="es-ES,fr,id,it,ja,pt-BR,ru,zh-CH,en-US"
TS=`date +%Y%m%d-%H%M`
for PRODUCT in Focus Klar; do
for DEVICE in "iPhone 7 Plus" "iPad Pro (12.9-inch)"; do
echo "Snapshotting $PRODUCT on $DEVICE"
DEVICEDIR="${DEVICE// /}"
mkdir -p "screenshots/$TS/$PRODUCT/$DEVICEDIR"
fastlane snapshot --project Blockzilla.xcodeproj --scheme "${PRODUCT}MarketingTests" \
--erase_simulator --localize_simulator \
--devices "$DEVICE" \
--languages "$LANGUAGES" \
--output_directory "screenshots/$TS/$PRODUCT/$DEVICEDIR" \
--clear_previous_screenshots > "screenshots/$TS/$PRODUCT/$DEVICEDIR/snapshot.log" 2>&1
done
done
echo "You can now move these to pmo:"
echo
echo " rsync -avh screenshots/$TS people.mozilla.org:~/public_html/focus/screenshots/"
echo
echo "They will be available at:"
echo
echo " https://people-mozilla.org/~sarentz/focus/screenshots/$TS/"
echo