...

Text file src/github.com/gorilla/handlers/.circleci/config.yml

Documentation: github.com/gorilla/handlers/.circleci

     1version: 2.0
     2
     3jobs:
     4  # Base test configuration for Go library tests Each distinct version should
     5  # inherit this base, and override (at least) the container image used.
     6  "test": &test
     7    docker:
     8      - image: circleci/golang:latest
     9    working_directory: /go/src/github.com/gorilla/handlers
    10    steps: &steps
    11      - checkout
    12      - run: go version
    13      - run: go get -t -v ./...
    14      - run: >
    15          if [[ "$LATEST" = true ]]; then
    16            diff -u <(echo -n) <(gofmt -d .)
    17          fi
    18      - run: >
    19          if [[ "$LATEST" = true ]]; then
    20            go vet -v .
    21          fi
    22      - run: go test -v -race ./...
    23
    24  "latest":
    25    <<: *test
    26    environment:
    27      LATEST: true
    28
    29  "1.12":
    30    <<: *test
    31    docker:
    32      - image: circleci/golang:1.12
    33
    34  "1.11":
    35    <<: *test
    36    docker:
    37      - image: circleci/golang:1.11
    38
    39  "1.10":
    40    <<: *test
    41    docker:
    42      - image: circleci/golang:1.10
    43
    44  "1.9":
    45    <<: *test
    46    docker:
    47      - image: circleci/golang:1.9
    48
    49  "1.8":
    50    <<: *test
    51    docker:
    52      - image: circleci/golang:1.8
    53
    54  "1.7":
    55    <<: *test
    56    docker:
    57      - image: circleci/golang:1.7
    58
    59workflows:
    60  version: 2
    61  build:
    62    jobs:
    63      - "latest"
    64      - "1.12"
    65      - "1.11"
    66      - "1.10"
    67      - "1.9"
    68      - "1.8"
    69      - "1.7"

View as plain text