-
Notifications
You must be signed in to change notification settings - Fork 94
/
circle.yml
37 lines (36 loc) · 1.09 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
# 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
TEST_TIMEOUT: 300000
JOBS: max # https://gist.github.com/ralphtheninja/f7c45bdee00784b41fed
branches:
ignore:
- gh-pages # list of branches to ignore
- /release\/.*/ # or ignore regexes
working_directory: ~/create-umi
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:
command: npm run cov
no_output_timeout: 300m
- run: bash <(curl -s https://codecov.io/bash)
- save_cache:
key: node-modules-{{ checksum "package.json" }}
paths:
- ./node_modules