Skip to content

Commit

Permalink
Revert "drop browserify". Drop babelify. Tuning build matrix
Browse files Browse the repository at this point in the history
This reverts commit 8854c54.
  • Loading branch information
Mingun committed Apr 22, 2018
1 parent 8854c54 commit 9fad031
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
25 changes: 15 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,29 @@ sudo: false

language: node_js

node_js:
- "4.0"
- "5.0"
- "6.0"
- "7.0"
- "8.0"
- "9.0"
- lts/*
- node
stages:
- lint
- test

jobs:
include:
- stage: lint
node_js: node
script: npm run lint
- stage: test
node_js:
- "4.0"
- "5.0"
- "6.0"
- "7.0"
- "8.0"
- "9.0"
- lts/*
- node
script: npm run test
- node_js: node
- stage: test
node_js: node
env: BROWSER=true # Just mark in the Travis UI
script: npm run browser

after_success:
Expand Down
10 changes: 9 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,22 @@ module.exports = function(config) {
config.set(withBrowserStack({
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha'],
frameworks: ['browserify', 'mocha'],

// list of files / patterns to load in the browser
files: [
'lib/**/*.js',
'test/**/*.js',
],

// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'lib/**/*.js': ['browserify'],
'test/**/*.js': ['browserify'],
},
browserify: { debug: true },

// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
"safe-stable-stringify": "^1.0.1"
},
"devDependencies": {
"browserify": "^16.1.1",
"chai": "^4.1.2",
"chai-json-schema": "^1.5.0",
"coveralls": "^3.0.0",
"eslint": "^4.19.0",
"karma": "^2.0.0",
"karma-browserify": "^5.2.0",
"karma-browserstack-launcher": "^1.3.0",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.5",
Expand Down

0 comments on commit 9fad031

Please sign in to comment.