OLD | NEW |
(Empty) | |
| 1 #! /bin/bash |
| 2 |
| 3 set -x |
| 4 |
| 5 if [ x$MODE == x'check' ]; then |
| 6 SUCCESS=0 |
| 7 |
| 8 # Check that the testcases json file has been updated |
| 9 echo "Checking test cases is up to date..." |
| 10 python ./test/update-testcases.py --dry-run |
| 11 let "SUCCESS += $?" |
| 12 |
| 13 # Check that the web-animations.js file passes lint checks |
| 14 ./run-lint.sh |
| 15 let "SUCCESS += $?" |
| 16 |
| 17 exit $SUCCESS |
| 18 else |
| 19 # For pull requests we don't have access to secure environment variables, so w
e just return true. |
| 20 if [ x$BROWSER == "xRemote" -a x$SAUCE_ACCESS_KEY == x"" ]; then |
| 21 exit 0 |
| 22 fi |
| 23 |
| 24 if [ x$BROWSER == "xAndroid-Chrome" ]; then |
| 25 echo ./run-tests-android.sh $ARGS | bash || exit 1 |
| 26 else |
| 27 echo ./run-tests.sh $ARGS | bash || exit 1 |
| 28 fi |
| 29 fi |
OLD | NEW |