From c659431ddc94da2eef38e70579dd3bc9c05f0f0e Mon Sep 17 00:00:00 2001 From: Equim Date: Sat, 24 Feb 2018 21:49:04 +0800 Subject: [PATCH] dep: use dep in circleci --- .circleci/config.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8a5562b1..0d2996e0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,7 +9,9 @@ jobs: - run: name: Install Dependencies command: | - cd cmd/filebrowser && go get ./... && cd ../.. + curl -fsSL -o /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 + chmod +x /usr/local/bin/dep + dep ensure -v go get github.com/alecthomas/gometalinter gometalinter --install - run: @@ -32,8 +34,10 @@ jobs: - run: name: Install Dependencies command: | + curl -fsSL -o /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 + chmod +x /usr/local/bin/dep + dep ensure -v cd cmd/filebrowser - go get ./... - run: name: Building command: go build @@ -46,9 +50,9 @@ jobs: - run: name: Install Dependencies command: | - cd cmd/filebrowser - go get ./... - cd ../.. + curl -fsSL -o /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 + chmod +x /usr/local/bin/dep + dep ensure -v - run: name: Deploy command: curl -sL https://git.io/goreleaser | bash