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