RHEL requires the source code for dependencies to be included in the srpm. The spec file already expects that, but we've only included the vendored modules (i.e., the `vendor` directory) in the `rhel-8.2.` branch. Move vendoring to master, so that we can build RHEL packages from it as well. This commit is the result of running `go mod vendor`, which includes the vendored sources and updates go.mod and go.sum files. Fedora requires the opposite: dependencies should not be vendored. The spec file already ignores the `vendor` directory by default.
18 lines
466 B
YAML
18 lines
466 B
YAML
sudo: false
|
|
language: go
|
|
go:
|
|
- 1.7
|
|
- 1.8
|
|
- 1.9
|
|
- "1.10"
|
|
- tip
|
|
before_install:
|
|
- go get golang.org/x/tools/cmd/cover
|
|
- go get github.com/mattn/goveralls
|
|
- go get github.com/golang/lint/golint
|
|
script:
|
|
- go test -v -covermode=count -coverprofile=coverage.out
|
|
- go vet ./...
|
|
- test -z "$(gofmt -d -s . | tee /dev/stderr)"
|
|
- test -z "$(golint ./... | tee /dev/stderr)"
|
|
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci
|