fix ci setup

This commit is contained in:
Alex Goodman 2019-10-08 10:18:34 -04:00
parent 3e490f7b5c
commit 68d3fe2ed9
No known key found for this signature in database
GPG key ID: 98AF011C5C78EB7E
2 changed files with 5 additions and 4 deletions

View file

@ -12,7 +12,7 @@ jobs:
- restore_cache:
keys:
- golang-1.11-{{ checksum "go.sum" }}
- run: make setup
- run: make setup-ci
- save_cache:
key: golang-1.11-{{ checksum "go.sum" }}
paths:
@ -32,7 +32,7 @@ jobs:
- restore_cache:
keys:
- golang-1.12-{{ checksum "go.sum" }}
- run: make setup
- run: make setup-ci
- save_cache:
key: golang-1.12-{{ checksum "go.sum" }}
paths:
@ -52,7 +52,7 @@ jobs:
- restore_cache:
keys:
- golang-1.13-{{ checksum "go.sum" }}
- run: make setup
- run: make setup-ci
- save_cache:
key: golang-1.13-{{ checksum "go.sum" }}
paths:

View file

@ -51,7 +51,8 @@ lint: build
generate-test-data:
docker build -t dive-test:latest -f .data/Dockerfile.test-image . && docker image save -o .data/test-docker-image.tar dive-test:latest && echo "Exported test data!"
setup:
setup-ci:
sudo apt update && sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev
go get ./...
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v1.18.0