feat(build): initial SauceLabs setup

Closes #2347
This commit is contained in:
Marc Laval
2015-06-02 16:29:09 +02:00
committed by Tobias Bosch
parent bb50cda181
commit eebd736cfe
12 changed files with 320 additions and 39 deletions

View File

@ -12,7 +12,12 @@ if [ "$MODE" = "dart_experimental" ]
then
${SCRIPT_DIR}/build_$MODE.sh
else
${SCRIPT_DIR}/build_$MODE.sh
mkdir deploy; tar -czpf deploy/dist.tgz -C dist .
${SCRIPT_DIR}/test_$MODE.sh
if [ "$MODE" = "saucelabs" ]
then
${SCRIPT_DIR}/test_$MODE.sh
else
${SCRIPT_DIR}/build_$MODE.sh
mkdir deploy; tar -czpf deploy/dist.tgz -C dist .
${SCRIPT_DIR}/test_$MODE.sh
fi
fi

12
scripts/ci/test_saucelabs.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -e
echo =============================================================================
# go to project dir
SCRIPT_DIR=$(dirname $0)
cd $SCRIPT_DIR/../..
./scripts/sauce/sauce_connect_setup.sh
./scripts/sauce/sauce_connect_block.sh
./node_modules/.bin/gulp build.js.dev
./node_modules/.bin/gulp test.unit.js.sauce/ci