Skip to content

Commit d583fd0

Browse files
committed
Update CircleCI config to 2.0
1 parent 71c59f2 commit d583fd0

File tree

2 files changed

+44
-31
lines changed

2 files changed

+44
-31
lines changed

.circleci/config.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/workspace
5+
docker:
6+
- image: circleci/node:8.9.4
7+
steps:
8+
- checkout
9+
- run:
10+
name: Configure Git
11+
command: |
12+
git config --global user.name 'CircleCI'
13+
git config --global user.email 's+circleci@sugarshin.net'
14+
- restore_cache:
15+
name: Restoring Cache - dependencies
16+
keys:
17+
- v1-dependencies-{{ .Branch }}-{{ checksum "yarn.lock" }}
18+
- v1-dependencies-
19+
- run:
20+
name: System information
21+
command: |
22+
echo "Node.js $(node -v)"
23+
echo "npm $(npm -v)"
24+
echo "Yarn v$(yarn --version)"
25+
- run:
26+
name: Install dependencies
27+
command: yarn
28+
- run:
29+
name: Tests
30+
command: |
31+
npm run lint
32+
npm run type
33+
npm run test:coverage:report
34+
- save_cache:
35+
paths:
36+
- ~/workspace/node_modules
37+
- ~/.cache/yarn/
38+
key: v1-dependencies-{{ .Branch }}-{{ checksum "yarn.lock" }}
39+
- deploy:
40+
command: |
41+
if [ "${CIRCLE_BRANCH}" == "master" ]; then
42+
npm run build:demo
43+
npm run deploy
44+
fi

circle.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)