improving tests process

This commit is contained in:
Julien Neuhart
2018-04-06 12:04:42 +02:00
parent bf28499e18
commit a5bcd64c9a
5 changed files with 38 additions and 13 deletions

View File

@@ -25,8 +25,15 @@ RUN echo "deb http://httpredir.debian.org/debian/ stretch main contrib non-free"
# |
WORKDIR /go/src/github.com/gulien/gotenberg
# Installs lint dependencies.
RUN go get -u gopkg.in/alecthomas/gometalinter.v2 &&\
gometalinter.v2 --install
# Copies our Go source.
COPY . .
# Installs project dependencies.
RUN go get -d -v ./...
CMD ["go", "test", "-race", "-cover", "./..."]
ENTRYPOINT ["_ci/docker-entrypoint.sh"]