mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-04-11 02:21:00 +00:00
Instead of parallelization on a single Travis VM, we use two VMs. - output is nicer (we don't have to buffer e2e tests and then show it at the end) - you can easily see faster the result of unit tests (as it's basically a separate build) We should also make sure we only do the necesary stuff (for install we don't need to do `grunt package` for unit tests, we only need to generate the docs for e2e tests.
16 lines
431 B
Bash
Executable file
16 lines
431 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:docgen
|
|
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
|
|
elif [ $JOB = "e2e" ]; then
|
|
grunt test:e2e --browsers SL_Chrome --reporters dots
|
|
else
|
|
echo "Unknown job type. Please set JOB=unit or JOB=e2e."
|
|
fi
|