File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11language : node_js
2- node_js :
3- - " 4.2"
42sudo : false
53cache :
64 directories :
97 global :
108 - SAUCE_USERNAME=flowjs
119 - SAUCE_ACCESS_KEY=53e609a9-cb5d-4eac-a888-aa5419836f19
12- addons :
13- sauce_connect : true
14- before_script :
15- - export DISPLAY=:99.0
16- - sh -e /etc/init.d/xvfb start
17- - npm install --quiet -g grunt-cli karma
18- - npm install
10+ matrix :
11+ fast_finish : true
12+ include :
13+ - env : TEST='unit-tests'
14+ node_js : " 4.2"
15+ - env : TEST='browser-tests'
16+ node_js : " 4.2"
17+ addons :
18+ sauce_connect : true
19+ allow_failures :
20+ - env : TEST='unit-tests'
21+ - env : TEST='browser-tests'
22+ before_install : npm install -g grunt-cli
23+ install : npm install
1924script :
20- - grunt karma:coverage
21- - grunt karma:saucelabs || true
25+ - $TRAVIS_BUILD_DIR/travis.sh
Original file line number Diff line number Diff line change @@ -59,15 +59,16 @@ module.exports = function(config) {
5959 base : 'SauceLabs' ,
6060 browserName : 'iPhone' ,
6161 platform : 'OS X 10.10' ,
62- deviceName : " iPad Simulator" ,
62+ deviceName : ' iPad Simulator' ,
6363 version : '7.1'
6464 } ,
6565 sl_iphone_2 : {
6666 base : 'SauceLabs' ,
6767 browserName : 'iPhone' ,
6868 platform : 'OS X 10.10' ,
69- deviceName : "iPad Simulator" ,
70- version : '9.1'
69+ deviceName : 'iPad Simulator' ,
70+ deviceOrientation : 'portrait' ,
71+ version : '9.2'
7172 } ,
7273 sl_safari_1 : {
7374 base : 'SauceLabs' ,
@@ -130,7 +131,7 @@ module.exports = function(config) {
130131
131132 // Continuous Integration mode
132133 // if true, it capture browsers, run tests and exit
133- singleRun : false ,
134+ singleRun : true ,
134135
135136 customLaunchers : customLaunchers ,
136137
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ if [ $TEST = " unit-tests" ]; then
6+
7+ echo " Running unit-tests"
8+ export DISPLAY=:99.0
9+ sh -e /etc/init.d/xvfb start
10+ sleep 1
11+ grunt karma:coverage
12+
13+ elif [[ $TEST = " browser-tests" ]]; then
14+
15+ echo " Running browser-tests"
16+ grunt karma:saucelabs
17+
18+ fi
You can’t perform that action at this time.
0 commit comments