Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #29 from microservices-demo/refactor/middleware
Browse files Browse the repository at this point in the history
Refactor to use middleware code from weaveworks/common.
  • Loading branch information
Phil Winder committed Mar 21, 2017
2 parents dd16f30 + f7fff2c commit 923c8b0
Show file tree
Hide file tree
Showing 8 changed files with 229 additions and 137 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sudo: required
services:
- docker
go:
- 1.6
- 1.7
before_install:
- go get -u github.com/mattn/goveralls
- go get -u github.com/FiloSottile/gvt
Expand Down
2 changes: 1 addition & 1 deletion docker/payment/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.6
FROM golang:1.7

RUN mkdir /app
COPY . /go/src/github.com/microservices-demo/payment/
Expand Down
94 changes: 0 additions & 94 deletions middleware/instrument.go

This file was deleted.

33 changes: 0 additions & 33 deletions middleware/middleware.go

This file was deleted.

1 change: 0 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ CODE_DIR=$(cd $SCRIPT_DIR/..; pwd)
echo $CODE_DIR

cp -r $CODE_DIR/cmd/ $CODE_DIR/docker/payment/cmd/
cp -r $CODE_DIR/middleware/ $CODE_DIR/docker/payment/middleware/
cp $CODE_DIR/*.go $CODE_DIR/docker/payment/
mkdir $CODE_DIR/docker/payment/vendor && cp $CODE_DIR/vendor/manifest $CODE_DIR/docker/payment/vendor/

Expand Down
2 changes: 1 addition & 1 deletion test/unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_go(self):
'-v', code_dir + ':/go/src/github.com/microservices-demo/payment',
'-w', '/go/src/github.com/microservices-demo/payment',
'-e', 'GOPATH=/go/',
'golang:1.6',
'golang:1.7',
'go', 'test', '-v', '-covermode=count', '-coverprofile=coverage.out'
]

Expand Down

0 comments on commit 923c8b0

Please sign in to comment.