forked from umijs/father
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
38 lines (37 loc) · 1.2 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
# 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:
# specify the version you desire here
- image: circleci/node:latest-browsers
environment:
CI: true
NODE_ENV: test
NODE_OPTIONS: --max_old_space_size=4096
NPM_CONFIG_LOGLEVEL: error
JOBS: max # https://gist.github.com/ralphtheninja/f7c45bdee00784b41fed
branches:
ignore:
- gh-pages # list of branches to ignore
- /release\/.*/ # or ignore regexes
working_directory: ~/father
steps:
- checkout
- restore_cache:
key: node-modules-{{ checksum "package.json" }}
- run: sudo npm install -g cnpm
- run: cnpm install --registry=https://registry.npmjs.org
- run: cnpm run bootstrap -- --npm-client=cnpm
- run: cnpm run build
- run:
command: npm run test -- --forceExit --detectOpenHandles --runInBand --maxWorkers=2
no_output_timeout: 300m
- run: bash <(curl -s https://codecov.io/bash)
- save_cache:
key: node-modules-{{ checksum "package.json" }}
paths:
- ./node_modules