1---
2version: 2.1
3
4commands:
5  default:
6    steps:
7    - run: make style check_license test lint
8  no-test:
9    steps:
10    - run: make style check_license lint
11
12jobs:
13  test:
14    parameters:
15      command:
16        type: string
17      go_version:
18        type: string
19      os:
20        type: string
21    docker:
22    - image: circleci/golang:<< parameters.go_version >>
23    environment:
24      GOOS: "<< parameters.os >>"
25    working_directory: /go/src/github.com/prometheus/procfs
26    steps:
27    - checkout
28    - << parameters.command >>
29
30  codespell:
31    docker:
32    - image: circleci/python
33
34    steps:
35    - checkout
36    - run: sudo pip install codespell
37    - run: codespell --skip=".git,./vendor,ttar,fixtures.ttar,./fixtures,go.mod,go.sum" -L uint,packages\',ded,alo,als,te,sie,hart,hda
38
39workflows:
40  version: 2
41  procfs:
42    jobs:
43    - test:
44        command: default
45        name: linux-1-15
46        os: linux
47        go_version: "1.15"
48    - test:
49        command: default
50        name: linux-1-14
51        os: linux
52        go_version: "1.14"
53    - test:
54        command: no-test
55        name: windows-1-15
56        os: windows
57        go_version: "1.15"
58    - test:
59        command: no-test
60        name: windows-1-14
61        os: windows
62        go_version: "1.14"
63    - codespell
64