Skip to content

Commit

Permalink
Merge pull request #96 from unexpectedjs/depfu/update/npm/karma-4.1.0
Browse files Browse the repository at this point in the history
Upgrade karma to version 4.1.0
  • Loading branch information
sunesimonsen committed Apr 24, 2019
2 parents e2884af + 52238a4 commit 0027304
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
27 changes: 24 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
language: node_js

env:
- TARGET=test

node_js:
- '6'
- '7'
- '8'
- '8.7.0'
- '10'
- 'node'
script: 'npm run ci'

matrix:
include:
- name: Lint
node_js: '8.7.0'
env:
- TARGET=lint
- name: Coverage
node_js: '8.7.0'
env:
- TARGET=coverage
- name: Chrome headless
node_js: '8.7.0'
env:
- TARGET=test-headless

script: npm run $TARGET

after_success: '<coverage/lcov.info ./node_modules/coveralls/bin/coveralls.js'
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
"lint": "eslint .",
"test": "mocha --require unexpected-markdown test/*.js `find documentation -name '*.md'`",
"test-headless": "karma start --single-run",
"ci": "npm test && npm run test-headless && npm run coverage && (<coverage/lcov.info coveralls || true) && npm run lint && npm run generate-site",
"test-browser": "serve .",
"coverage": "nyc --reporter=lcov --reporter=text npm test && echo google-chrome coverage/lcov-report/index.html",
"coverage": "nyc --reporter=lcov --reporter=text npm test",
"generate-site": "generate-site --require ./bootstrap-unexpected-markdown.js",
"update-examples": "generate-site --require ./bootstrap-unexpected-markdown.js --update-examples",
"deploy-site": "deploy-site"
Expand All @@ -38,7 +37,7 @@
"eslint-config-pretty-standard": "^2.0.0",
"eslint-plugin-mocha": "^5.2.0",
"eslint-plugin-prettier": "^3.0.0",
"karma": "^3.1.4",
"karma": "^4.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-mocha": "^1.3.0",
"mocha": "^6.0.0",
Expand Down

0 comments on commit 0027304

Please sign in to comment.