minio/.travis.yml

49 lines
1.5 KiB
YAML
Raw Normal View History

go_import_path: github.com/minio/minio
2015-04-12 02:23:13 +02:00
language: go
# this ensures PRs based on a local branch are not built twice
# the downside is that a PR targeting a different branch is not built
# but as a workaround you can add the branch to this list
branches:
only:
- master
matrix:
include:
- os: linux
2018-10-18 05:18:53 +02:00
dist: trusty
sudo: required
env:
- ARCH=x86_64
- CGO_ENABLED=0
2018-12-28 23:04:39 +01:00
go: 1.11.4
script:
- make
- diff -au <(gofmt -s -d cmd) <(printf "")
- diff -au <(gofmt -s -d pkg) <(printf "")
- for d in $(go list ./... | grep -v browser); do CGO_ENABLED=1 go test -v -race --timeout 15m "$d"; done
- make verify
- make coverage
- cd browser && yarn && yarn test && cd ..
2018-10-18 05:18:53 +02:00
- os: windows
env:
- ARCH=x86_64
- CGO_ENABLED=0
2018-12-28 23:04:39 +01:00
go: 1.11.4
2018-10-18 05:18:53 +02:00
script:
- go build --ldflags="$(go run buildscripts/gen-ldflags.go)" -o %GOPATH%\bin\minio.exe
- for d in $(go list ./... | grep -v browser); do CGO_ENABLED=1 go test -v -race --timeout 20m "$d"; done
2018-10-18 05:18:53 +02:00
- bash buildscripts/go-coverage.sh
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'; fi
2018-03-23 10:06:20 +01:00
before_install:
2018-10-18 05:18:53 +02:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then nvm install stable ; fi
2018-03-23 10:06:20 +01:00
2016-08-05 01:48:50 +02:00
after_success:
- bash <(curl -s https://codecov.io/bash)