language: go
go:
    - 1.10.x
    - tip

install:
    - mkdir -p $GOPATH/src/github.com/prometheus $GOPATH/src/github.com/opencontainers
    - cd $GOPATH/src/github.com/opencontainers && git clone https://github.com/opencontainers/runtime-spec && cd runtime-spec && git checkout fa4b36aa9c99e00c2ef7b5c0013c84100ede5f4e
    - cd $GOPATH/src/github.com/containerd/cgroups
    - go get -t ./...
    - go get -u github.com/vbatts/git-validation
    - go get -u github.com/kunalkushwaha/ltag

before_script:
    - pushd ..; git clone https://github.com/containerd/project; popd

script:
    - DCO_VERBOSITY=-q ../project/script/validate/dco
    - ../project/script/validate/fileheader ../project/
    - go test -race -coverprofile=coverage.txt -covermode=atomic

after_success:
    - bash <(curl -s https://codecov.io/bash)

language: go
go:
    - 1.10.x
    - 1.11.x
    - tip

install:
    - mkdir -p $GOPATH/src/github.com/prometheus $GOPATH/src/github.com/opencontainers
    - cd $GOPATH/src/github.com/opencontainers && git clone https://github.com/opencontainers/runtime-spec && cd runtime-spec && git checkout fa4b36aa9c99e00c2ef7b5c0013c84100ede5f4e
    - cd $GOPATH/src/github.com/containerd/cgroups
    - go get -t ./...
    - go get -u github.com/vbatts/git-validation
    - go get -u github.com/kunalkushwaha/ltag

before_script:
    - pushd ..; git clone https://github.com/containerd/project; popd

script:
    - DCO_VERBOSITY=-q ../project/script/validate/dco
    - ../project/script/validate/fileheader ../project/
    - go test -race -coverprofile=coverage.txt -covermode=atomic

after_success:
    - bash <(curl -s https://codecov.io/bash)

Add Go 1.11 to Travis
Add Go 1.11 to Travis

Signed-off-by: Gábor Lipták <9e199222fac9dc9f83e67bca7cf6b1b7a7aed53e@gmail.com>
