Skip to content

Commit

Permalink
Change installation of gorelease
Browse files Browse the repository at this point in the history
  • Loading branch information
aldor007 committed Jun 24, 2018
1 parent 14869bf commit ea01b78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ prof.mem
.idea
vendor/
node_modules/
pkg/processor/benchmark/local/file-test
coverage.txt
3 changes: 1 addition & 2 deletions Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*

RUN gem install --no-ri --no-rdoc fpm
RUN curl -sL http://git.io/goreleaser | bash

ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
Expand All @@ -52,5 +51,5 @@ ADD . /go/src/github.com/aldor007/mort

RUN cd /go/src/github.com/aldor007/mort; dep ensure -vendor-only
# RUN build
RUN cd /go/src/github.com/aldor007/mort; GITHUB_TOKEN=${GITHUB_TOKEN} goreleaser
RUN cd /go/src/github.com/aldor007/mort; GITHUB_TOKEN=${GITHUB_TOKEN} curl -sL http://git.io/goreleaser | bash

4 changes: 2 additions & 2 deletions pkg/processor/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func TestPut(t *testing.T) {
buf := bytes.Buffer{}
buf.WriteString("aaaa")

req, _ := http.NewRequest("PUT", "http://mort/local/fila-test", &buf)
req, _ := http.NewRequest("PUT", "http://mort/local/file-test", &buf)

mortConfig := config.Config{}
err := mortConfig.Load("./benchmark/small.yml")
Expand All @@ -225,7 +225,7 @@ func TestPut(t *testing.T) {

assert.Equal(t, res.StatusCode, 200)

req, _ = http.NewRequest("HEAD", "http://mort/local/fila-test", &buf)
req, _ = http.NewRequest("HEAD", "http://mort/local/file-test", &buf)
res = rp.Process(req, obj)

assert.Equal(t, res.StatusCode, 200)
Expand Down

0 comments on commit ea01b78

Please sign in to comment.