Welcome to mirror list, hosted at ThFree Co, Russian Federation.

config.yml « .circleci - github.com/twbs/rfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c5f7926bcba6f8292479a6bd26a907f516af624e (plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
version: 2.1

aliases:
  - &npm_cache_filename |
    {{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{ checksum ".circleci/config.yml" }}-{{ checksum "package-lock.json" }}

commands:
  install:
    parameters:
      install-commands:
        description: "Steps that will be executed before the tests"
        type: steps
        default: []
    steps:
      - checkout
      - restore_cache:
          key: *npm_cache_filename
          name: Restoring npm modules
      - run: node --version
      - run: npm --version

jobs:
  node-6:
    docker:
      - image: circleci/node:6-stretch
    steps:
      - install
      - run: npm install
      - save_cache:
          key: *npm_cache_filename
          name: Save npm modules
          paths:
            - ./node_modules/
      - run: npm test

  node-8:
    docker:
      - image: circleci/node:8-stretch
    steps:
      - install
      - run: npm ci
      - save_cache:
          key: *npm_cache_filename
          name: Save npm modules
          paths:
            - /home/circleci/.npm
      - run: npm test

  node-10:
    docker:
      - image: circleci/node:10-stretch
    steps:
      - install
      - run: npm ci
      - save_cache:
          key: *npm_cache_filename
          name: Save npm modules
          paths:
            - /home/circleci/.npm
      - run: npm test

workflows:
  version: 2
  test:
    jobs:
      - node-6
      - node-8
      - node-10