-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e27f38b
commit 3d8f24e
Showing
9 changed files
with
52 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,26 @@ | ||
language: node_js | ||
node_js: | ||
- '4' | ||
- '6' | ||
- '8' | ||
- '4' | ||
- '6' | ||
- '8' | ||
- node | ||
sudo: false | ||
git: | ||
depth: 1 | ||
notifications: | ||
irc: irc.freenode.org#socket.io | ||
irc: 'irc.freenode.org#socket.io' | ||
matrix: | ||
include: | ||
- node_js: 'node' | ||
env: BROWSER_NAME=chrome BROWSER_VERSION=latest | ||
- node_js: 'node' | ||
env: BROWSER_NAME=safari BROWSER_VERSION=latest | ||
- node_js: 'node' | ||
env: BROWSER_NAME=firefox BROWSER_VERSION=latest | ||
- node_js: 'node' | ||
env: BROWSER_NAME=ie BROWSER_VERSION=8 | ||
- node_js: 'node' | ||
env: BROWSER_NAME=ie BROWSER_VERSION=9 | ||
- node_js: 'node' | ||
env: BROWSER_NAME=ie BROWSER_VERSION=10 | ||
- node_js: 'node' | ||
env: BROWSER_NAME=ie BROWSER_VERSION=11 | ||
- node_js: 'node' | ||
env: BROWSER_NAME=microsoftedge BROWSER_VERSION=latest | ||
- node_js: 'node' | ||
env: BROWSER_NAME=iphone BROWSER_VERSION=8.4 | ||
- node_js: 'node' | ||
env: BROWSER_NAME=iphone BROWSER_VERSION=9.2 | ||
- node_js: 'node' | ||
env: BROWSER_NAME=iphone BROWSER_VERSION=10.0 | ||
- node_js: 'node' | ||
env: BROWSER_NAME=android BROWSER_VERSION=4.4 | ||
- node_js: 'node' | ||
env: BROWSER_NAME=android BROWSER_VERSION=5.1 | ||
- node_js: 'node' | ||
env: BROWSER_NAME=ipad BROWSER_VERSION=9.3 | ||
- node_js: 'node' | ||
env: BROWSER_NAME=ipad BROWSER_VERSION=10.0 | ||
- node_js: node | ||
env: BROWSERS=1 | ||
cache: | ||
directories: | ||
- node_modules | ||
env: | ||
global: | ||
- secure: >- | ||
QYaPt9wtF7Vm+kRPaGNAaCRP/E74gjxA7T0k1GqPYIs2xDiuhU/ef03pzWIjBB+6z0GGnsQ4rG+6JlM1lsthTMEDcegbp6/XKZkqZqWUaJmCy7U41J2mJutwli6ZV9VAqh5pi0mfe5elAqeh/fx+GhFbtu6JzBQkpW58OytiP1Y= | ||
- secure: >- | ||
pa7ocLVb5BJPCIC1cnGWWC0nGOKywR6Ac/QuiX1VD1SUt0XxpPVrbBzdgfHIMD0MCJ8F8xIlu2IPgp0O/a6c+Nj2V825Up5yKD/H0k1FKQ/4jp9aInV1VDFkKmoWdQcpCSaHq9HXJH58Bm4lpNyJdCydMpGOjZmSfs/ZGbzNN1Y= | ||
- secure: >- | ||
Og1/VRKnYHFNIj5rFhn/MIWvk8TBJ4CrNwffeBsUmusPJzyeATjkD8ZjGHD3jcjUcI3m4ihHe5al+WOt8GT9pUABDbuvFJXCBtNMGlo0URRlFu+oc3Qi3Ux8gJ/2317HDx9RNOJ+AC8EcBym49BDTm93rHc80ZLBVZZDS2pUU6o= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,33 @@ | ||
'use strict'; | ||
|
||
var browsers = require('socket.io-browsers'); | ||
|
||
var zuulConfig = module.exports = { | ||
ui: 'mocha-bdd', | ||
|
||
// test on localhost by default | ||
local: true, | ||
|
||
concurrency: 2, // ngrok only accepts two tunnels by default | ||
// if browser does not sends output in 120s since last output: | ||
// stop testing, something is wrong | ||
browser_output_timeout: 120 * 1000, | ||
browser_open_timeout: 60 * 4 * 1000, | ||
// we want to be notified something is wrong asap, so no retry | ||
browser_retries: 1, | ||
|
||
server: './test/support/server.js', | ||
local: true, // test on localhost by default | ||
builder: 'zuul-builder-webpack', | ||
webpack: require('./support/webpack.config.js') | ||
webpack: require('./support/webpack.config.dev.js') | ||
}; | ||
|
||
if (process.env.CI === 'true') { | ||
zuulConfig.local = false; | ||
zuulConfig.tunnel = { | ||
type: 'ngrok', | ||
authtoken: '6Aw8vTgcG5EvXdQywVvbh_3fMxvd4Q7dcL2caAHAFjV', | ||
proto: 'tcp' | ||
bind_tls: true | ||
}; | ||
} | ||
|
||
var isPullRequest = process.env.TRAVIS_PULL_REQUEST && process.env.TRAVIS_PULL_REQUEST !== 'false'; | ||
zuulConfig.browsers = isPullRequest ? browsers.pullRequest : browsers.all; |