mirror of
https://github.com/minio/minio.git
synced 2025-02-05 18:58:08 -05:00
313a3a286a
Simplify the cmd/http package overall by removing custom plain text v/s tls connection detection, by migrating to go1.12 and choose minimum version to be go1.12 Also remove all the vendored deps, since they are not useful anymore.
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
go_import_path: github.com/minio/minio
|
|
|
|
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
|
|
dist: trusty
|
|
sudo: required
|
|
env:
|
|
- ARCH=x86_64
|
|
- CGO_ENABLED=0
|
|
- GO111MODULE=on
|
|
go: 1.12.1
|
|
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 verifiers
|
|
- make crosscompile
|
|
- make verify
|
|
- make coverage
|
|
- cd browser && yarn && yarn test && cd ..
|
|
- os: windows
|
|
env:
|
|
- ARCH=x86_64
|
|
- CGO_ENABLED=0
|
|
- GO111MODULE=on
|
|
go: 1.12.1
|
|
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
|
|
- 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
|
|
|
|
before_install:
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then nvm install 11.10.1 ; fi
|
|
|
|
after_success:
|
|
- bash <(curl -s https://codecov.io/bash)
|