Skip to content

Commit

Permalink
add zuul and browser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinmetcalf committed Oct 3, 2015
1 parent 0d36370 commit 87de1de
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 5 deletions.
37 changes: 34 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,38 @@ node_js:
- "0.11"
- "0.12"
- "iojs"
env:
- TEST_SUITE=standard
- TEST_SUITE=unit
matrix:
include:
- node_js: '0.10'
env: TEST_SUITE=unit
- node_js: '0.11'
env: TEST_SUITE=unit
- node_js: '0.12'
env: TEST_SUITE=unit
- node_js: 'iojs'
env: TEST_SUITE=unit
- node_js: 'iojs'
env: TEST_SUITE=standard
- node_js: 'iojs'
env: TEST_SUITE=browser
- node_js: 'iojs'
env: TEST_SUITE=browser BROWSER_NAME=opera BROWSER_VERSION="11..latest"
- node_js: 'iojs'
env: TEST_SUITE=browser BROWSER_NAME=ie BROWSER_VERSION="9..latest"
- node_js: 'iojs'
env: TEST_SUITE=browser BROWSER_NAME=chrome BROWSER_VERSION="41..beta"
- node_js: 'iojs'
env: TEST_SUITE=browser BROWSER_NAME=firefox BROWSER_VERSION="36..latest"
- node_js: 'iojs'
env: TEST_SUITE=browser BROWSER_NAME=ipad BROWSER_VERSION="8.2"
- node_js: 'iojs'
env: TEST_SUITE=browser BROWSER_NAME=iphone BROWSER_VERSION="8.2"
- node_js: 'iojs'
env: TEST_SUITE=browser BROWSER_NAME=safari BROWSER_VERSION="5..latest"
- node_js: 'iojs'
env: TEST_SUITE=browser BROWSER_NAME=android BROWSER_VERSION="4.0..latest"
script: "npm run-script $TEST_SUITE"
env:
global:
- secure: YHNUDQmx/WiW3gmDcRCfb6KLDeio7Mr5tqPY2kHPdZlBSytsQjNk75ytM4U6Cu8Uk8iEIoj/aFlxiVMpJNA8J4QSUyW/YkbVaIz0+1oywoV0Ht8aRBfZ1jvXfX6789+1Q9c4xaMkYYbJpXSh9JcirsiwmqWd4+IDd7hcESodsDQ=
- secure: Nhj5yejKZxUbtHGZta+GjYWqXGaOZB7ainTkOuGcpXM+OwwjeDpYlTBrwS90Q7hqens7KXVzQM09aDbadpsDCsOo1nyaEigMtomAorZ1UC1CpEoVz1ZuikF9bEhb+/7M9pzuL1fX+Ke9Dx4mPPeb8sf/2SrAu1RqXkSwZV/duAc=
1 change: 1 addition & 0 deletions .zuul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ui: tape
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"prepublish": "npm ls && npm test",
"standard": "standard",
"test": "npm run standard && npm run unit",
"unit": "set -e; for t in test/node/*.js test/*.js; do node $t; done"
"unit": "node test/",
"browser": "zuul --browser-version $BROWSER_VERSION --browser-name $BROWSER_NAME -- test/index.js"
},
"engines": {
"node": "*"
Expand All @@ -32,7 +33,8 @@
"devDependencies": {
"hash-test-vectors": "~1.3.2",
"standard": "^5.0.2",
"tape": "~2.3.2"
"tape": "~2.3.2",
"zuul": "^3.6.0"
},
"optionalDependencies": {},
"browser": {
Expand Down
11 changes: 11 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require('./aes')
require('./create-hash')
require('./create-hmac')
if (!process.browser) {
require('./dh')
}
require('./ecdh')
require('./pbkdf2')
require('./public-encrypt')
require('./random-bytes')
require('./sign')

0 comments on commit 87de1de

Please sign in to comment.