mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-02 17:26:31 +08:00
Currently there is only a minimal test spec in place. But this will now be run as part of the test tasks.
23 lines
770 B
Bash
Executable File
23 lines
770 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
export SAUCE_ACCESS_KEY=`echo $SAUCE_ACCESS_KEY | rev`
|
|
|
|
if [ $JOB = "unit" ]; then
|
|
grunt ci-checks
|
|
grunt test:promises-aplus
|
|
grunt test:unit --browsers SL_Chrome,SL_Safari,SL_Firefox,SL_IE_8,SL_IE_9,SL_IE_10,SL_IE_11 --reporters dots
|
|
grunt test:docs --browsers SL_Chrome,SL_Safari,SL_Firefox,SL_IE_8,SL_IE_9,SL_IE_10,SL_IE_11 --reporters dots
|
|
elif [ $JOB = "e2e" ]; then
|
|
export TARGET_SPECS="build/docs/ptore2e/**/*jqlite_test.js"
|
|
if [ $TEST_TARGET = "jquery" ]; then
|
|
TARGET_SPECS="build/docs/ptore2e/**/*jquery_test.js"
|
|
elif [ $TEST_TARGET = "doce2e" ]; then
|
|
TARGET_SPECS="test/e2e/docsAppE2E.js"
|
|
fi
|
|
grunt test:travis-protractor --specs "$TARGET_SPECS"
|
|
else
|
|
echo "Unknown job type. Please set JOB=unit or JOB=e2e-*."
|
|
fi
|