diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..077e188 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,20 @@ +version: 2.1 +orbs: + node: circleci/node@4.2.1 + coveralls: coveralls/coveralls@1.0.6 +jobs: + buildAndTest: + # Reuse Docker container specification given by the node Orb + executor: node/default + steps: + - checkout + - node/install-packages + - run: npm run build + - run: npm test + - coveralls/upload + +workflows: + version: 2 + build_and_test: + jobs: + - buildAndTest \ No newline at end of file diff --git a/README.md b/README.md index 8fc4e8a..2c0d740 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ [![NPM](https://nodei.co/npm/zip-a-folder.png)](https://nodei.co/npm/zip-a-folder/) +[![CircleCI](https://circleci.com/gh/maugenst/zip-a-folder.svg?style=shield)](https://circleci.com/gh/maugenst/zip-a-folder) +[![Coverage Status](https://coveralls.io/repos/github/maugenst/zip-a-folder/badge.svg?branch=master)](https://coveralls.io/github/maugenst/zip-a-folder?branch=master) + # zip-a-folder Easy to use zip (or tar) a complete folder plain into a zip file including compression ratio handling. diff --git a/package.json b/package.json index 2ec5287..632b653 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "test": "test" }, "scripts": { - "test": "jest --coverage && coveralls < ./coverage/lcov.info", + "test": "jest --coverage", "build": "npm run clean && tsc && npm run lint", "clean": "rimraf dist/", "lint": "eslint . --ext .ts"