storj/.travis.yml

41 lines
986 B
YAML
Raw Normal View History

2018-04-25 15:55:26 +01:00
language: go
go:
- 1.11.x
2018-04-25 15:55:26 +01:00
git:
depth: 1
cache:
directories:
- /home/travis/cache
services:
- redis
2018-09-25 19:23:21 +01:00
before_script:
# Add an IPv6 config - see the corresponding Travis issue
# https://github.com/travis-ci/travis-ci/issues/8361
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
sudo sh -c 'echo "\n::1 localhost\n" >> /etc/hosts';
fi
2018-04-25 15:55:26 +01:00
before_install:
- source scripts/setup-gopath.sh
- source scripts/install-awscli.sh
install:
- pushd ~
- GOBIN=${GOPATH}/bin GOPATH=~/gotools go get -v github.com/mattn/goveralls
- popd
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b ${GOPATH}/bin v1.10.2
- go install -v ./...
2018-04-25 16:22:20 +01:00
script:
- ./scripts/check-for-header.sh
- golangci-lint run
- go test -race -v -cover -coverprofile=.coverprofile ./...
- goveralls -coverprofile=.coverprofile -service=travis-ci
- make test-captplanet