Skip to content

Commit

Permalink
only run go versions 1.12, 1.13 and tip. allows us to remove dep
Browse files Browse the repository at this point in the history
  • Loading branch information
steamrolla committed Sep 20, 2019
1 parent fd18d35 commit ab84900
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 377 deletions.
37 changes: 10 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ sudo: required

language: go

go:
- 1.12
- 1.13
- tip

services:
- docker

env:
global:
- VAULT_ADDR=http://127.0.0.1:8200
- DEP_VERSION="0.5.0"
- GO111MODULE=on

matrix:
Expand All @@ -18,33 +22,12 @@ matrix:
# Don't wait for tip tests to finish. Mark the test run green if the
# tests pass on the stable versions of Go.
fast_finish: true
include:
- go: 1.9.x
install: dep ensure -v -vendor-only
script: go test -v -race -cover -timeout=1m ./...
- go: 1.10.x
install: dep ensure -v -vendor-only
script: go test -v -race -cover -timeout=1m ./...
- go: 1.11.x
before_install: skip
install:
- go build ./...
- go mod vendor
script: go test -v -race -cover -timeout=1m -mod=vendor ./...
- go: tip
before_install: skip
install:
- go build ./...
- go mod vendor
script: go test -v -race -cover -timeout=1m -mod=vendor ./...

before_install:
- mkdir -p $GOPATH/bin
- wget -O $GOPATH/bin/dep "https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64"
- chmod +x $GOPATH/bin/dep
- export PATH="$GOPATH/bin:$PATH"
install:
- go build ./...
- go mod vendor
script: go test -v -race -cover -timeout=1m -mod=vendor ./...

before_script:
- docker run -d -p 2379:2379 quay.io/coreos/etcd /usr/local/bin/etcd -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379
- docker run -d -p 8500:8500 --name consul consul
- docker run -d -p 8200:8200 --cap-add=IPC_LOCK -e 'VAULT_DEV_ROOT_TOKEN_ID=root' -e 'VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200' vault:0.9.6
- docker run -d -p 8200:8200 --cap-add=IPC_LOCK -e 'VAULT_DEV_ROOT_TOKEN_ID=root' -e 'VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200' vault:0.9.6
319 changes: 0 additions & 319 deletions Gopkg.lock

This file was deleted.

Loading

0 comments on commit ab84900

Please sign in to comment.