File tree 8 files changed +584
-337
lines changed
8 files changed +584
-337
lines changed Original file line number Diff line number Diff line change 1
1
language : go
2
2
go :
3
- - " 1.11 "
3
+ - " 1.12 "
4
4
go_import_path : github.com/camptocamp/terraboard
5
5
install :
6
- - go get -u github.com/golang/dep/cmd/dep
7
- - go get -u github.com/bradfitz/goimports
6
+ - make vendor
7
+ script :
8
+ - make terraboard
9
+ - make test
8
10
- go get -u github.com/mattn/goveralls
9
11
- go get -u golang.org/x/tools/cmd/cover
10
- - dep ensure
11
- script :
12
- - make
13
12
- make coverage
14
13
- " $HOME/gopath/bin/goveralls -service=travis-ci -coverprofile=coverage.out"
Original file line number Diff line number Diff line change 1
1
FROM golang:1.11 as builder
2
2
WORKDIR /go/src/github.com/camptocamp/terraboard
3
3
COPY . .
4
- RUN go get -u github.com/golang/dep/cmd/dep && dep ensure
4
+ ENV GO111MODULE=on
5
5
RUN make terraboard
6
6
7
7
FROM scratch
Original file line number Diff line number Diff line change 1
1
FROM golang:1.11
2
2
WORKDIR /go/src/github.com/camptocamp/terraboard
3
3
COPY . .
4
- RUN go get -u github.com/golang/dep/cmd/dep && dep ensure
4
+ ENV GO111MODULE=on
5
5
RUN go install .
6
6
ENTRYPOINT ["terraboard"]
7
7
CMD [""]
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ VERSION = $(shell git describe --always)
4
4
all : test terraboard
5
5
6
6
terraboard : main.go $(DEPS )
7
- CGO_ENABLED=1 GOOS=linux go build \
7
+ GO111MODULE=on CGO_ENABLED=1 GOOS=linux go build \
8
8
-ldflags " -linkmode external -extldflags -static -X main.version=$( VERSION) " \
9
9
-o $@ $<
10
10
strip $@
@@ -21,11 +21,13 @@ vet: main.go
21
21
go vet $<
22
22
23
23
imports : main.go
24
- dep ensure
25
24
goimports -d $<
26
25
27
26
test : lint vet imports
28
- go test -v ./...
27
+ GO111MODULE=on go test -v ./...
28
+
29
+ vendor :
30
+ GO111MODULE=on go mod vendor
29
31
30
32
coverage :
31
33
rm -rf * .out
You can’t perform that action at this time.
0 commit comments