Skip to content

Commit

Permalink
add test data
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed May 14, 2020
1 parent 88c32f2 commit 35f0ee7
Show file tree
Hide file tree
Showing 5 changed files with 18,742 additions and 8,718 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM golang:alpine3.10
WORKDIR /src/github.com/medyah/gopogh
FROM golang:1.13.10-alpine3.11
WORKDIR /src/
COPY ./ ./
RUN apk -U add make git
RUN go get github.com/GeertJohan/go.rice
RUN go get github.com/GeertJohan/go.rice/rice
RUN apk -U add make
RUN make build
RUN cp ./out/gopogh /
RUN install ./out/gopogh /bin/gopogh
RUN chmod +x ./text2html.sh
RUN cp ./text2html.sh /text2html.sh


14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,16 @@ cross: out/gopogh-linux-amd64 out/gopogh-darwin-amd64 out/gopogh.exe
.PHONY: clean
clean:
rm -rf out
rm pkg/report/rice-box.go || true
rm pkg/report/rice-box.go || true



.PHONY: build-image
build-image:
docker build -t local/gopogh:latest .

.PHONY: test-in-docker
test-in-docker:
rm ./testdata/docker-test/testout.json || true
rm ./testdata/docker-test/testout.html || true
docker run -it -v $(pwd)/testdata/docker-test:/data local/gopogh /bin/sh
Loading

0 comments on commit 35f0ee7

Please sign in to comment.