Skip to content

Commit

Permalink
Add go dep to manage package dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rbhitchcock committed Dec 11, 2018
1 parent f424392 commit c832db4
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,31 @@ name: default
steps:
- name: vet
image: golang:1.11-stretch
environment:
DEP_VERSION: 0.5.0
pull: always
commands:
- go get gonum.org/v1/gonum/graph
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
- dep ensure
- cd dfd && go vet
- name: race
image: golang:1.11-stretch
pull: always
environment:
DEP_VERSION: 0.5.0
commands:
- go get gonum.org/v1/gonum/graph
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
- dep ensure
- cd dfd && go test -race
- name: test
image: golang:1.11-stretch
pull: always
environment:
DEP_VERSION: 0.5.0
commands:
- go get gonum.org/v1/gonum/graph
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
- dep ensure
- cd dfd && go test -cover
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
dfd/dfd
main.go
.DS_Store
vendor/
58 changes: 58 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[[constraint]]
branch = "master"
name = "gonum.org/v1/gonum"

[prune]
go-tests = true
unused-packages = true

0 comments on commit c832db4

Please sign in to comment.