version: 2
jobs:
  build-go-latest:
    docker:
    - image: golang:latest
    working_directory: /go/src/github.com/gliderlabs/ssh
    steps:
    - checkout
    - run: go get
    - run: go test -v -race

  build-go-1.7:
    docker:
    - image: golang:1.7
    working_directory: /go/src/github.com/gliderlabs/ssh
    steps:
    - checkout
    - run: go get
    - run: go test -v -race

workflows:
  version: 2
  build:
    jobs:
      - build-go-latest
      - build-go-1.7

version: 2
jobs:
  build-go-latest:
    docker:
    - image: golang:latest
    working_directory: /go/src/github.com/gliderlabs/ssh
    steps:
    - checkout
    - run: go get
    - run: go test -v -race

  build-go-1.9:
    docker:
    - image: golang:1.9
    working_directory: /go/src/github.com/gliderlabs/ssh
    steps:
    - checkout
    - run: go get
    - run: go test -v -race

workflows:
  version: 2
  build:
    jobs:
      - build-go-latest
      - build-go-1.9

Update CircleCI config to test 1.9 and the latest
Update CircleCI config to test 1.9 and the latest

The x/crypto/ssh library dropped support go < 1.9 as that's the first
version to have the math/bits library.

https://github.com/golang/crypto/commit/83c378c48d6ee2ca9c20551b599aa74cb7765785
