File tree 7 files changed +51
-9
lines changed
7 files changed +51
-9
lines changed Original file line number Diff line number Diff line change 8
8
tools /*
9
9
.testrepository
10
10
* .png
11
+ web-animations-4lint.js
Original file line number Diff line number Diff line change
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 we just return true.
20
+ if [ x$BROWSER == " xRemote" -a x$SAUCE_ACCESS_KEY == x" " ]; then
21
+ exit 0
22
+ fi
23
+
24
+ echo ./run-tests.sh $ARGS | bash || exit 1
25
+ fi
Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /bin/bash
2
2
3
3
set -x
4
4
Original file line number Diff line number Diff line change 7
7
- SAUCE_USERNAME=mithro
8
8
9
9
matrix :
10
+ - MODE='check'
10
11
- BROWSER=Chrome-stable ARGS='-x -b Chrome -u'
11
12
- BROWSER=Chrome-beta ARGS='-x -b Chrome -u'
12
13
- BROWSER=Chrome-unstable ARGS='-x -b Chrome -u'
@@ -29,13 +30,7 @@ install:
29
30
- ./.travis-setup.sh
30
31
31
32
script :
32
- - python ./test/update-testcases.py --dry-run || (echo "Please run update-testcases!"; false)
33
- # For pull requests we don't have access to secure environment variables, so we just return true.
34
- - if [ x$BROWSER == "xRemote" -a x$SAUCE_ACCESS_KEY == "x" ]; then
35
- true;
36
- else
37
- echo ./run-tests.sh $ARGS | bash;
38
- fi
33
+ - ./.travis-run.sh
39
34
40
35
after_failure :
41
36
- for file in *.log; do echo $file; echo "======================"; cat $file; done || true
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Update git submodules
4
+ git submodule init
5
+ git submodule update
6
+
7
+ # If already in a VIRTUAL_ENV assume the person knows what they are doing,
8
+ # otherwise set up a python virtualenv with all the needed requirements.
9
+ if [ x$VIRTUAL_ENV == x" " ]; then
10
+ cd tools/python
11
+ source setup.sh
12
+ cd ../..
13
+ fi
14
+
15
+ # Comment out the (function() {} ) wrapper
16
+ sed -e' 17s-^-//-' -e' $s-^-//-' web-animations.js > web-animations-4lint.js
17
+
18
+ gjslint --summary --nojsdoc --strict web-animations-4lint.js
19
+ exit $?
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ if [ x$VIRTUAL_ENV == x"" ]; then
12
12
cd ../..
13
13
fi
14
14
15
- exec python tools/python/run-tests.py $@
15
+ exec python tools/python/run-tests.py " $@ "
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ testtools>=0.9.30
2
2
python-subunit # subunit
3
3
selenium
4
4
5
+ -e svn+http://closure-linter.googlecode.com/svn/trunk/#egg=closer-linter
6
+
5
7
# Requirements for using -x
6
8
pyvirtualdisplay
7
9
pyscreenshot
You can’t perform that action at this time.
0 commit comments