Skip to content

Commit

Permalink
Run test and coverage on CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
yulii committed Aug 14, 2017
1 parent dd738d7 commit eb027ab
Show file tree
Hide file tree
Showing 5 changed files with 4,533 additions and 30 deletions.
28 changes: 28 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:7.10
steps:
- checkout

- restore_cache:
key: hubot-script-dependencies-{{ checksum "package-lock.json" }}

- run:
name: Install dependencies
command: yarn install

- save_cache:
key: hubot-script-dependencies-{{ checksum "package-lock.json" }}
paths:
- node_modules

- run:
name: Run test
command: yarn test
- run:
name: Measure coverage
command: |
yarn run coverage
cat coverage/lcov.info | "$(npm bin)/coveralls"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage
node_modules
.DS_Store*
.hubot_history
Expand Down
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit eb027ab

Please sign in to comment.