Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
chore: add Travis CI + Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
stackjie committed Oct 16, 2017
1 parent 75c3308 commit 3df09b3
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-ci
repo_token: CG7bluJ3IFzSIXUR4BKUFOGpwX5fQrGgG
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: node_js
node_js:
- 6
install:
|
npm install -g npm@latest
npm --version
npm install --registry http://registry.npmjs.org
script:
- npm run test
after_script:
- npm run coveralls

33 changes: 33 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: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"dev": "node ./build/dev-server.js",
"build": "webpack --config ./build/prod.config.js && gulp --gulpfile build/minimize.js",
"build-examples": "webpack --config ./build/examples.prod.config.js",
"unit": "cross-env karma start test/unit/karma.conf.js"
"unit": "cross-env karma start test/unit/karma.conf.js",
"test": "npm run unit",
"coveralls": "cat ./test/unit/coverage/lcov/lcov.info | ./node_modules/.bin/coveralls"
},
"repository": {
"type": "git",
Expand All @@ -35,6 +37,7 @@
"babel-preset-es2015": "^6.24.1",
"babel-register": "^6.22.0",
"chai": "^3.5.0",
"coveralls": "^3.0.0",
"cross-env": "^5.0.5",
"css-loader": "^0.28.0",
"del": "^3.0.0",
Expand Down

0 comments on commit 3df09b3

Please sign in to comment.