minio/.travis.yml

42 lines
1.1 KiB
YAML
Raw Normal View History

go_import_path: github.com/minio/minio
2015-04-11 17:23:13 -07: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-17 20:18:53 -07:00
dist: trusty
sudo: required
env:
- ARCH=x86_64
2018-10-17 20:18:53 -07:00
go: 1.10.4
script:
- make
- diff -au <(gofmt -s -d cmd) <(printf "")
- diff -au <(gofmt -s -d pkg) <(printf "")
- make test GOFLAGS="-timeout 15m -race -v"
- make verify
- make coverage
- cd browser && yarn && yarn test && cd ..
2018-10-17 20:18:53 -07:00
- os: windows
env:
- ARCH=x86_64
go: 1.10.4
script:
- go build --ldflags="$(go run buildscripts/gen-ldflags.go)" -o %GOPATH%\bin\minio.exe
- for d in $(go list ./... | grep -v browser); do go test -v -race --timeout 20m "$d"; done
- bash buildscripts/go-coverage.sh
2018-03-23 14:36:20 +05:30
before_install:
2018-10-17 20:18:53 -07:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then nvm install stable ; fi
2018-03-23 14:36:20 +05:30
2016-08-04 16:48:50 -07:00
after_success:
- bash <(curl -s https://codecov.io/bash)