config.yml 459 Bytes
Newer Older
陈帅's avatar
陈帅 committed
1 2 3 4
version: 2
jobs:
  build:
    docker:
陈帅's avatar
陈帅 committed
5
      - image: circleci/node:latest
陈帅's avatar
陈帅 committed
6 7 8
    steps:
      - checkout
      - run: npm install
陈帅's avatar
陈帅 committed
9
      - run: npm run lint
陈帅's avatar
陈帅 committed
10 11 12
      - run: npm run build
  test:
    docker:
13
      - image: circleci/node:latest-browsers
陈帅's avatar
陈帅 committed
14 15 16
    steps:
      - checkout
      - run: npm install
陈帅's avatar
陈帅 committed
17 18 19
      - run:
          command: npm run test:all
          no_output_timeout: 30m
陈帅's avatar
陈帅 committed
20 21 22 23 24
workflows:
  version: 2
  build_and_test:
    jobs:
      - build
陈帅's avatar
陈帅 committed
25
      - test