Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use go dep instead of go get ... #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ ssh-keys
saml-keys
.keys
.ssh-keys

# Go Dependency Management
vendor
12 changes: 3 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,13 @@ before_install:
- git config --global url."[email protected]:".insteadOf "https://github.com/"
- go get -u github.com/axw/gocov/gocov
- go get -u github.com/AlekSi/gocov-xml
- go get -u gopkg.in/h2non/gock.v1
- go get -u github.com/JormungandrK/microservice-tools
- go get -u github.com/JormungandrK/microservice-security/...
- go get -u github.com/goadesign/goa/...
- go get -u gopkg.in/mgo.v2
- go get -u github.com/afex/hystrix-go/hystrix
- go get -u github.com/satori/go.uuid
- go get -u github.com/dgrijalva/jwt-go
- go get -u -v github.com/golang/dep/cmd/dep
- dep ensure -v

before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter

script:
- gocov test github.com/JormungandrK/jwt-issuer/... | gocov-xml > coverage.xml && ./cc-test-reporter format-coverage -t cobertura -o coverage.json coverage.xml
- gocov test $(go list ./... | grep -v vendor) | gocov-xml > coverage.xml && ./cc-test-reporter format-coverage -t cobertura -o coverage.json coverage.xml
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter upload-coverage -i coverage.json; fi
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
### Multi-stage build
FROM jormungandrk/goa-build as build
FROM golang:1.8.3-alpine3.6 as build

RUN apk add --no-cache git

COPY . /go/src/github.com/JormungandrK/jwt-issuer

WORKDIR /go/src/github.com/JormungandrK/jwt-issuer

RUN go get -u -v github.com/golang/dep/cmd/dep
RUN dep ensure -v
RUN go install github.com/JormungandrK/jwt-issuer


Expand Down
123 changes: 123 additions & 0 deletions Gopkg.lock

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

58 changes: 58 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
branch = "master"
name = "github.com/JormungandrK/microservice-security"

[[constraint]]
branch = "master"
name = "github.com/JormungandrK/microservice-tools"

[[constraint]]
branch = "master"
name = "github.com/afex/hystrix-go"

[[constraint]]
name = "github.com/dgrijalva/jwt-go"
version = "3.1.0"

[[constraint]]
branch = "master"
name = "github.com/goadesign/goa"

[[constraint]]
name = "github.com/satori/go.uuid"
version = "1.1.0"

[[constraint]]
name = "github.com/spf13/cobra"
version = "0.0.1"

[[constraint]]
branch = "master"
name = "golang.org/x/net"

[[constraint]]
name = "gopkg.in/h2non/gock.v1"
version = "1.0.6"