Skip to content

Commit 2eeb4d0

Browse files
committed
feat(project): added circleci configuration
1 parent 4e87da6 commit 2eeb4d0

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.circleci/config.yml

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

0 commit comments

Comments
 (0)