ci: fix dep installation

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

View File

@ -9,8 +9,8 @@ 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 curl -sL -o $GOPATH/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64
chmod +x /usr/local/bin/dep chmod +x $GOPATH/bin/dep
dep ensure -v dep ensure -v
go get github.com/alecthomas/gometalinter go get github.com/alecthomas/gometalinter
gometalinter --install gometalinter --install
@ -34,8 +34,8 @@ 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 curl -sL -o $GOPATH/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64
chmod +x /usr/local/bin/dep chmod +x $GOPATH/bin/dep
dep ensure -v dep ensure -v
cd cmd/filebrowser cd cmd/filebrowser
- run: - run:
@ -50,8 +50,8 @@ 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 curl -sL -o $GOPATH/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64
chmod +x /usr/local/bin/dep chmod +x $GOPATH/bin/dep
dep ensure -v dep ensure -v
- run: - run:
name: Deploy name: Deploy