Skip to content

Commit f3de29a

Browse files
committed
ci: Setup circleci 2
1 parent 68aeeb2 commit f3de29a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.circleci/config.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
7+
8+
jobs:
9+
build:
10+
docker:
11+
# specify the version you desire here
12+
- image: circleci/node:8
13+
14+
# Specify service dependencies here if necessary
15+
# CircleCI maintains a library of pre-built images
16+
# documented at https://circleci.com/docs/2.0/circleci-images/
17+
# - image: circleci/mongo:3.4.4
18+
19+
working_directory: ~/repo
20+
21+
steps:
22+
- checkout
23+
24+
# Download and cache dependencies
25+
- restore_cache:
26+
keys:
27+
- v1-dependencies-{{ checksum "package.json" }}
28+
# fallback to using the latest cache if no exact match is found
29+
- v1-dependencies-
30+
31+
- run: npm install
32+
33+
- save_cache:
34+
paths:
35+
- node_modules
36+
key: v1-dependencies-{{ checksum "package.json" }}
37+
38+
# run tests!
39+
- run: npm test

0 commit comments

Comments
 (0)