forked from honeytrap/honeytrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.Dockerfile
33 lines (26 loc) · 1.02 KB
/
test.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM influx6/lxcontains-ubuntu
ADD . /go/src/github.com/honeytrap/honeytrap
WORKDIR /go/src/github.com/honeytrap/honeytrap
# Get all dependencies to fix issue with linter on ./director
RUN go get -v
# Install gometalinter
RUN go get -u -v github.com/alecthomas/gometalinter
# Install missing lint tools
RUN gometalinter --install
# Run go tests
RUN go test -v ./director/...
RUN go test -v ./protocol/...
RUN go test -v ./providers/...
RUN go test -v ./proxies/...
RUN go test -v ./pushers/...
RUN go test -v ./server/...
RUN go test -v ./sniffer/...
RUN go test -v ./utils/...
# Run go linters
RUN gometalinter --deadline 2m --errors --vendor ./director/...
RUN gometalinter --deadline 2m --errors --vendor ./providers/...
RUN gometalinter --deadline 2m --errors --vendor ./proxies/...
RUN gometalinter --deadline 2m --errors --vendor ./pushers/...
RUN gometalinter --deadline 2m --errors --vendor ./server/...
RUN gometalinter --deadline 2m --errors --vendor ./sniffer/...
RUN gometalinter --deadline 2m --errors --vendor ./utils/...