Skip to content

Commit

Permalink
CircleCI 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonBazhal committed Oct 19, 2018
1 parent ed95b80 commit 3ef533f
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 17 deletions.
57 changes: 57 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
version: 2.0

references:

workspace_root: &workspace_root
./

node_container: &node_container
docker:
- image: circleci/node:6

attach_workspace: &attach_workspace
attach_workspace:
at: *workspace_root

run_on_master: &run_on_master
filters:
branches:
only: master

jobs:
dependencies:
<<: *node_container
steps:
- checkout
- run: npm install
- persist_to_workspace:
root: *workspace_root
paths:
- node_modules
test:
<<: *node_container
steps:
- checkout
- *attach_workspace
- run: npm run test
- run: sudo npm install -g coveralls
- run: cat ./coverage/lcov.info | coveralls
publish:
<<: *node_container
steps:
- checkout
- *attach_workspace
- run: sudo npm install -g publish
- run: publish

workflows:
version: 2
default:
jobs:
- dependencies
- test:
requires: [ 'dependencies' ]
- publish:
context: ci-publish
requires: [ 'dependencies', 'test' ]
<<: *run_on_master
17 changes: 0 additions & 17 deletions circle.yml

This file was deleted.

0 comments on commit 3ef533f

Please sign in to comment.