Add tests to CircleCI

This commit is contained in:
Rodrigo Nascimento 2017-11-06 10:21:56 -02:00
parent f9942f3321
commit 0a2ee246bd
No known key found for this signature in database
GPG Key ID: CFCE33B7B01AC335
1 changed files with 36 additions and 1 deletions

View File

@ -3,6 +3,38 @@ defaults: &defaults
version: 2
jobs:
test:
<<: *defaults
docker:
- image: circleci/node:8
environment:
CODECOV_TOKEN: caa771ab-3d45-4756-8e2a-e1f25996fef6
steps:
- checkout
- run:
name: Install NPM modules
command: |
npm install
npm install codecov
- run:
name: Lint
command: |
npm run lint
- run:
name: Test
command: |
npm test
- run:
name: Codecov
command: |
npx codecov
build:
<<: *defaults
docker:
@ -75,4 +107,7 @@ workflows:
version: 2
build-and-test:
jobs:
- build
- test
- build:
requires:
- test