Skip to content

Commit

Permalink
Merge pull request #7 from marqeta/deps
Browse files Browse the repository at this point in the history
Add go dep to manage package dependencies
  • Loading branch information
rbhitchcock authored Dec 11, 2018
2 parents f424392 + 01d4a04 commit d7fa330
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,25 @@ 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
- cd dfd && go vet
- ./.prep_drone.sh
- go vet go-dfd/dfd
- name: race
image: golang:1.11-stretch
pull: always
environment:
DEP_VERSION: 0.5.0
commands:
- go get gonum.org/v1/gonum/graph
- cd dfd && go test -race
- ./.prep_drone.sh
- go test -race go-dfd/dfd
- name: test
image: golang:1.11-stretch
pull: always
environment:
DEP_VERSION: 0.5.0
commands:
- go get gonum.org/v1/gonum/graph
- cd dfd && go test -cover
- ./.prep_drone.sh
- go test -cover go-dfd/dfd
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/
8 changes: 8 additions & 0 deletions .prep_drone.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

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
PACKAGE_PATH=$GOPATH/src/go-dfd
ln -s $DRONE_WORKSPACE $PACKAGE_PATH
cd $PACKAGE_PATH
dep ensure
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 d7fa330

Please sign in to comment.