dep: use dep in circleci

This commit is contained in:
Equim 2018-02-24 21:49:04 +08:00
parent 5f5237248f
commit c659431ddc
No known key found for this signature in database
GPG Key ID: 0534B6F897D268E7

View File

@ -9,7 +9,9 @@ jobs:
- run: - run:
name: Install Dependencies name: Install Dependencies
command: | 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 go get github.com/alecthomas/gometalinter
gometalinter --install gometalinter --install
- run: - run:
@ -32,8 +34,10 @@ jobs:
- run: - run:
name: Install Dependencies name: Install Dependencies
command: | 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 cd cmd/filebrowser
go get ./...
- run: - run:
name: Building name: Building
command: go build command: go build
@ -46,9 +50,9 @@ jobs:
- run: - run:
name: Install Dependencies name: Install Dependencies
command: | command: |
cd cmd/filebrowser curl -fsSL -o /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64
go get ./... chmod +x /usr/local/bin/dep
cd ../.. dep ensure -v
- run: - run:
name: Deploy name: Deploy
command: curl -sL https://git.io/goreleaser | bash command: curl -sL https://git.io/goreleaser | bash