diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..dcad2a4 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +repo_token: E5NNMfg1IaP4MsRzfMoeePlARhgNvkE4M diff --git a/.travis.yml b/.travis.yml index 18a232e..8fc40fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,10 @@ node_js: before_script: - npm install -g webpack babel - npm install - + script: - npm run build - - npm test \ No newline at end of file + - npm test + +after_success: + - npm run coverage diff --git a/package.json b/package.json index 430a2cf..2bb9d9c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "build": "cd ./configs && webpack", "start": "cd ./configs && webpack --watch", - "test": "cd ./configs && jest --config jest.config.json" + "test": "cd ./configs && jest --config jest.config.json", + "coverage": "cd ./configs && jest --coverage && cat ../coverage/lcov.info | coveralls" }, "repository": { "type": "git", @@ -24,6 +25,7 @@ "babel-loader": "^7.1.2", "babel-preset-es2015": "^6.24.1", "babel-preset-stage-2": "^6.24.1", + "coveralls": "^3.0.0", "jest": "^22.1.4" } }