Skip to content

Commit

Permalink
add travis + zuul matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Aug 25, 2014
1 parent 1b83549 commit be7e37a
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 10 deletions.
41 changes: 34 additions & 7 deletions .travis.yml
@@ -1,13 +1,6 @@
language: node_js
node_js:
- '0.10'
- '0.11'
git:
depth: 1
matrix:
fast_finish: true
allow_failures:
- node_js: '0.11'
notifications:
irc: irc.freenode.org#socket.io
env:
Expand All @@ -16,3 +9,37 @@ env:
- secure: f5EAsqnJNW//oUgShxSGcDQsz6NUbwfkZCKoPymTamjyK69N5/Q70MQ5UrF3gih3ZiwWDK7Cd6T394vU+Jdrf+LdOdzgef3sz8YJbF3HiOOLp5tYuFVOtOMCBkefdJ/JkqFvrBQUgo3klSD6jUz2SdRlwi33iYlYO8mleO8IxRo=
- secure: 0ah52GLAyJYZwJpnYbTscXgSuSoRLQBj/X0mZeeNGofPbQdWyhQoyBJMq77cTZJQ0mPKd3acojRH5DzYO5q0sMMPkN5mW3couqlyMk94PoYgaiTYRj7dzPnegi1myeVTioX9jomwkh1j+kg1diIHz+VHOgp9n7u595F0HnVXRwA=
- secure: MFEtLhbKZKQDsU9h6dXLRSSZfBUWRJgVV4pucS0bSVA4SZ3Cqq405mg83EiUCww0L0jMXkKKojxcbNl5aHHIzWtTDJTiDw1ifQrIWsbSZ4IPFixd98hU9N7fI4BkEiNhN2j5W4iF+52GDr6Msuy9+6bbuUXEWcJnhjrJ4ePNlBs=
matrix:
include:
- node_js: '0.10'
env: BROWSER_NAME=chrome BROWSER_VERSION=latest
- node_js: '0.10'
env: BROWSER_NAME=firefox BROWSER_VERSION=latest
- node_js: '0.10'
env: BROWSER_NAME=safari BROWSER_VERSION=latest
- node_js: '0.10'
env: BROWSER_NAME=ie BROWSER_VERSION=6
- node_js: '0.10'
env: BROWSER_NAME=ie BROWSER_VERSION=7
- node_js: '0.10'
env: BROWSER_NAME=ie BROWSER_VERSION=8
- node_js: '0.10'
env: BROWSER_NAME=ie BROWSER_VERSION=9
- node_js: '0.10'
env: BROWSER_NAME=ie BROWSER_VERSION=10 BROWSER_PLATFORM="Windows 2012"
- node_js: '0.10'
env: BROWSER_NAME=ie BROWSER_VERSION=latest BROWSER_PLATFORM="Windows 2012"
- node_js: '0.10'
env: BROWSER_NAME=iphone BROWSER_VERSION=6.1
- node_js: '0.10'
env: BROWSER_NAME=iphone BROWSER_VERSION=7.1
- node_js: '0.10'
env: BROWSER_NAME=android BROWSER_VERSION=4.0
- node_js: '0.10'
env: BROWSER_NAME=android BROWSER_VERSION=4.1
- node_js: '0.10'
env: BROWSER_NAME=android BROWSER_VERSION=4.2
- node_js: '0.10'
env: BROWSER_NAME=android BROWSER_VERSION=4.3
- node_js: '0.10'
env: BROWSER_NAME=android BROWSER_VERSION=4.4
19 changes: 17 additions & 2 deletions Makefile
Expand Up @@ -7,11 +7,26 @@ socket.io.js: lib/*.js package.json
@./support/browserify.sh > socket.io.js

test:
@if [ "x$(BROWSER_NAME)" = "x" ]; then make test-node; else make test-zuul; fi

test-node:
@./node_modules/.bin/mocha \
--reporter $(REPORTER) \
--bail \
test/index.js
@./node_modules/.bin/zuul -- test/index.js

test-zuul:
@if [ "x$(BROWSER_PLATFORM)" = "x" ]; then \
./node_modules/zuul/bin/zuul \
--browser-name $(BROWSER_NAME) \
--browser-version $(BROWSER_VERSION) \
test/index.js; \
else \
./node_modules/zuul/bin/zuul \
--browser-name $(BROWSER_NAME) \
--browser-version $(BROWSER_VERSION) \
--browser-platform $(BROWSER_PLATFORM) \
test/index.js; \
fi

test-cov:
@./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -25,7 +25,7 @@
"devDependencies": {
"socket.io": "1.0.6",
"mocha": "1.16.2",
"zuul": "1.6.3",
"zuul": "1.10.2",
"istanbul": "0.2.1",
"expect.js": "0.2.0",
"uglify-js": "2.4.8",
Expand Down

0 comments on commit be7e37a

Please sign in to comment.