mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
27 lines
595 B
Bash
Executable File
27 lines
595 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function init {
|
|
if [[ "$SNAPSHOT_BROWSER" == "" ]]; then
|
|
export SNAPSHOT_BROWSER=chrome
|
|
export SNAPSHOT_BROWSER_ID=chrome_desktop_test
|
|
export SNAPSHOT_WIDTH=400
|
|
export SNAPSHOT_HEIGHT=800
|
|
export SNAPSHOT_TEST_ID=$RANDOM
|
|
fi
|
|
}
|
|
|
|
function run {
|
|
cd ../..
|
|
|
|
gulp demos --demo-version=nightly
|
|
|
|
gulp snapshot-sauce \
|
|
--browser "$SNAPSHOT_BROWSER" \
|
|
--params.platform_id="$SNAPSHOT_BROWSER_ID" \
|
|
--params.width="$SNAPSHOT_WIDTH" \
|
|
--params.height="$SNAPSHOT_HEIGHT" \
|
|
--params.test_id="$SNAPSHOT_TEST_ID"
|
|
}
|
|
|
|
source $(dirname $0)/../utils.inc
|