...

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

Documentation: github.com/gorilla/sessions/.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/sessions
    10    steps: &steps
    11      - checkout
    12      - run: go version
    13      - run: go get -t -v ./...
    14      - run: diff -u <(echo -n) <(gofmt -d .)
    15      - run: if [[ "$LATEST" = true ]]; then go vet -v .; fi
    16      - run: go test -v -race ./...
    17
    18  "latest":
    19    <<: *test
    20    environment:
    21      LATEST: true
    22
    23
    24  "1.12":
    25    <<: *test
    26    docker:
    27      - image: circleci/golang:1.12
    28
    29  "1.11":
    30    <<: *test
    31    docker:
    32      - image: circleci/golang:1.11
    33
    34  "1.10":
    35    <<: *test
    36    docker:
    37      - image: circleci/golang:1.10
    38
    39  "1.9":
    40    <<: *test
    41    docker:
    42      - image: circleci/golang:1.9
    43
    44  "1.8":
    45    <<: *test
    46    docker:
    47      - image: circleci/golang:1.8
    48
    49  "1.7":
    50    <<: *test
    51    docker:
    52      - image: circleci/golang:1.7
    53
    54
    55workflows:
    56  version: 2
    57  build:
    58    jobs:
    59      - "latest"
    60      - "1.12"
    61      - "1.11"
    62      - "1.10"
    63      - "1.9"
    64      - "1.8"
    65      - "1.7"

View as plain text