image: dockercore/libcontainer
env:
  - AUTO_GOPATH=1
script:
# Setup the DockerInDocker environment.
  - /dind
  - sed -i 's!docker/docker!docker/libcontainer!' /go/src/github.com/docker/docker/hack/make/.validate
  - bash /go/src/github.com/docker/docker/hack/make/validate-dco
  - bash /go/src/github.com/docker/docker/hack/make/validate-gofmt
  - make direct-test

image: dockercore/libcontainer
script:
# Setup the DockerInDocker environment.
  - /dind
  - sed -i 's!docker/docker!docker/libcontainer!' /go/src/github.com/docker/docker/hack/make/.validate
  - bash /go/src/github.com/docker/docker/hack/make/validate-dco
  - bash /go/src/github.com/docker/docker/hack/make/validate-gofmt
  - export GOPATH="$GOPATH:/go:$(pwd)/vendor" # Drone mucks with our GOPATH
  - make direct-test

Fix GOPATH after Drone mucks with it
Fix GOPATH after Drone mucks with it

Signed-off-by: Andrew Page <4b2b69742da531f1900c4c4748d7a0ecda59626a@gmail.com>
