Skip to content

Commit e860c52

Browse files
committed
setup CI
1 parent 2bee153 commit e860c52

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

ci.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
set -e
2+
if [ -z "$CI_PULL_REQUEST" ]
3+
then
4+
npm test
5+
cat ./coverage/lcov.info | ./node_modules/.bin/codecov
6+
else
7+
npm test
8+
fi

circle.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
machine:
2+
node:
3+
version: 5
4+
5+
test:
6+
override:
7+
- bash ./build/ci.sh

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = function (config) {
3030
},
3131
coverageReporter: {
3232
reporters: [
33-
{ type: 'html', subdir: '.' },
33+
{ type: 'lcov', subdir: '.' },
3434
{ type: 'text-summary' }
3535
]
3636
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"homepage": "https://github.com/vuejs/vuefire#readme",
3535
"devDependencies": {
3636
"chai": "^3.5.0",
37+
"codecov": "^1.0.1",
3738
"eslint": "^2.5.1",
3839
"eslint-config-standard": "^5.1.0",
3940
"eslint-plugin-html": "^1.4.0",

0 commit comments

Comments
 (0)