Skip to content

Commit

Permalink
Add circleci configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
medson10 committed Feb 28, 2018
1 parent 36a6489 commit 59aefcf
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,53 @@
defaults: &defaults
working_directory: ~/repo
environment:
- TERM: xterm
- YARN_VERSION: 1.4.0
- NODE_VERSION: 8.9.4

docker:
- image: circleci/node:8.9.4

version: 2

jobs:
build:
<<: *defaults

working_directory: ~/repo

steps:
- checkout
- attach_workspace:
at: ~/repo

- run:
name: Install node deps
command: yarn install --network-concurrency 1

- persist_to_workspace:
root: .
paths:
- node_modules
- src

test:
<<: *defaults

working_directory: ~/repo

steps:
- checkout
- attach_workspace:
at: ~/repo
- run: yarn test

workflows:
version: 2
build_and_test_and_deploy:
jobs:
- build

- test:
requires:
- build

0 comments on commit 59aefcf

Please sign in to comment.