Skip to content

Commit 6e09b64

Browse files
author
Shammamah Hossain
authored
Add CircleCI config. (#78)
* Add CircleCI config. * Remove node update from CircleCI config. * Use package-lock instead of package for checksum.
1 parent 6135db0 commit 6e09b64

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.circleci/config.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
version: 2
2+
3+
jobs:
4+
build_and_test_node:
5+
docker:
6+
- image: circleci/python:3.7-stretch-node
7+
8+
steps:
9+
- checkout
10+
- run:
11+
name: Check current version of node
12+
command: node -v
13+
- restore_cache:
14+
key: deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}
15+
16+
- run:
17+
name: Install package.json
18+
command: npm ci
19+
20+
- save_cache:
21+
key: deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}
22+
paths:
23+
- node_modules
24+
25+
- run:
26+
name: Install Dash for package build and build package
27+
command: |
28+
python -m venv venv
29+
. venv/bin/activate
30+
pip install --upgrade pip
31+
pip install dash>=1.6.1
32+
npm run build
33+
34+
- run:
35+
name: Run unit tests
36+
command: |
37+
npm run test
38+
39+
workflows:
40+
version: 2
41+
build:
42+
jobs:
43+
- build_and_test_node

0 commit comments

Comments
 (0)