Skip to content

Commit a1ccfd8

Browse files
Adding circle
1 parent aea3854 commit a1ccfd8

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.circleci/config.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2
6+
branches:
7+
ignore:
8+
- gh-pages
9+
jobs:
10+
build:
11+
docker:
12+
# specify the version you desire here
13+
- image: circleci/node:8.6.0
14+
15+
# Specify service dependencies here if necessary
16+
# CircleCI maintains a library of pre-built images
17+
# documented at https://circleci.com/docs/2.0/circleci-images/
18+
# - image: circleci/mongo:3.4.4
19+
20+
working_directory: ~/repo
21+
22+
steps:
23+
- checkout
24+
25+
# Download and cache dependencies
26+
- restore_cache:
27+
keys:
28+
- v1-dependencies-{{ checksum "package.json" }}
29+
# fallback to using the latest cache if no exact match is found
30+
- v1-dependencies-
31+
32+
- run: npm i
33+
34+
- save_cache:
35+
paths:
36+
- node_modules
37+
key: v1-dependencies-{{ checksum "package.json" }}
38+
39+
# run tests!
40+
- run: npm test
41+
- run: bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)