-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
55 lines (53 loc) · 1.42 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
49
50
51
52
53
54
55
version: 2.1
executors:
node:
docker:
- image: circleci/node:latest-browsers
working_directory: ~/umi
environment:
NODE_ENV: test
NODE_OPTIONS: --max_old_space_size=4096
NPM_CONFIG_LOGLEVEL: error
JOBS: max # https://gist.github.com/ralphtheninja/f7c45bdee00784b41fed
jobs:
yarn_build:
executor: node
steps:
- checkout
- run: yarn install
- run: yarn bootstrap
- run: yarn build
- run: yarn ui:build
- run:
command: yarn test -- --forceExit --detectOpenHandles --runInBand --maxWorkers=2
no_output_timeout: 300m
- run: bash <(curl -s https://codecov.io/bash)
cnpm_build:
executor: node
steps:
- checkout
- 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: cnpm run ui:build
- run:
command: npm run test -- --forceExit --detectOpenHandles --runInBand --maxWorkers=2
no_output_timeout: 300m
- run: bash <(curl -s https://codecov.io/bash)
workflows:
version: 2
build-test:
jobs:
- yarn_build:
filters:
branches:
ignore:
- gh-pages
- /release\/.*/
- cnpm_build:
filters:
branches:
ignore:
- gh-pages
- /release\/.*/