forked from umijs/dumi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
48 lines (38 loc) · 1.07 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2.0
jobs:
build:
docker:
- image: circleci/node:latest-browsers
environment:
CI: true
NODE_ENV: test
working_directory: ~/repo
steps:
- checkout
- restore_cache:
key: node-modules-{{ checksum "package.json" }}
- run:
name: Install Dependencies
command: yarn --frozen-lockfile
- run:
name: Bootstrap
command: yarn bootstrap --npm-client=yarn
- save_cache:
key: node-modules-{{ checksum "package.json" }}
paths:
- ./node_modules
- ~/.cache/yarn
- run:
name: Run Build
command: yarn build
- run:
name: Run Tests
command: yarn test:unit -- --forceExit --detectOpenHandles --runInBand --maxWorkers=2
no_output_timeout: 300m
- run:
name: Generate coverage
command: bash <(curl -s https://codecov.io/bash)