Skip to content

Commit

Permalink
feat: add code coverage reporting by updating deps (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored Aug 28, 2018
1 parent 0dfd5eb commit 80d3d73
Show file tree
Hide file tree
Showing 5 changed files with 345 additions and 7 deletions.
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
sudo: false
dist: trusty
language: node_js
node_js:
- '8'
- 'lts/*'
before_install:
- npm install -g greenkeeper-lockfile@1
before_script: greenkeeper-lockfile-update
- npm install -g greenkeeper-lockfile@1
before_script:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- greenkeeper-lockfile-update
after_script: greenkeeper-lockfile-upload
addons:
firefox: latest
apt:
sources:
- google-chrome
packages:
- google-chrome-stable

4 changes: 3 additions & 1 deletion generators/app/package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const DEFAULTS = {
'videojs-generate-karma-config',
'not-prerelease',
'sinon',
'videojs-standard'
'videojs-standard',
'npm-merge-driver'
])
};

Expand Down Expand Up @@ -143,6 +144,7 @@ const packageJSON = (current, context) => {
'server': 'karma start scripts/karma.conf.js --singleRun=false --auto-watch --no-browsers',
'pretest': 'npm-run-all lint build',
'test': 'karma start scripts/karma.conf.js',
'posttest': 'shx cat test/dist/coverage/text.txt',
'preversion': 'npm test',
'version': 'is-prerelease || npm run update-changelog && git add CHANGELOG.md',
'update-changelog': 'conventional-changelog -p videojs -i CHANGELOG.md -s',
Expand Down
323 changes: 323 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,15 @@
"in-publish": "^2.0.0",
"jsdoc": "https://github.com/BrandonOCasey/jsdoc#feat/plugin-from-cli",
"karma": "^3.0.0",
"npm-merge-driver": "^2.3.5",
"postcss-cli": "^6.0.0",
"rollup": "^0.64.1",
"shx": "^0.3.2",
"sinon": "^6.1.5",
"video.js": "^6 || ^7",
"videojs-generate-karma-config": "~1.0.1",
"videojs-generate-karma-config": "~2.0.0",
"videojs-generate-postcss-config": "~2.0.1",
"videojs-generate-rollup-config": "~1.0.0",
"videojs-generate-rollup-config": "~2.0.1",
"videojs-languages": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion scripts/run-integration-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ helpers.run(libs.GENERATOR_PATH)
})
.withOptions(libs.options())
.withPrompts({
name: 'REPLACE_ME',
name: 'integration-test',
author: 'John Doe',
description: 'wat is the plugin',
docs: true,
Expand Down

0 comments on commit 80d3d73

Please sign in to comment.