2016-10-17 11:42:20 -04:00
|
|
|
go_import_path: github.com/minio/minio
|
2016-09-28 21:49:16 -04:00
|
|
|
|
2015-04-11 20:23:13 -04:00
|
|
|
language: go
|
2016-01-14 21:17:24 -05:00
|
|
|
|
2019-07-09 21:32:39 -04:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- shellcheck
|
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2018-08-19 16:57:18 -04:00
|
|
|
# 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
|
|
|
|
|
2018-07-03 12:42:19 -04:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
2018-10-17 23:18:53 -04:00
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
2018-07-03 12:42:19 -04:00
|
|
|
env:
|
|
|
|
- ARCH=x86_64
|
2019-01-08 19:53:04 -05:00
|
|
|
- CGO_ENABLED=0
|
2019-03-19 16:50:59 -04:00
|
|
|
- GO111MODULE=on
|
2019-12-10 23:28:22 -05:00
|
|
|
- SIMPLE_CI=1
|
2019-09-08 19:44:15 -04:00
|
|
|
go: 1.13.x
|
2018-07-03 12:42:19 -04:00
|
|
|
script:
|
|
|
|
- make
|
|
|
|
- diff -au <(gofmt -s -d cmd) <(printf "")
|
|
|
|
- diff -au <(gofmt -s -d pkg) <(printf "")
|
2019-10-09 02:11:15 -04:00
|
|
|
- for d in $(go list ./... | grep -v browser); do CGO_ENABLED=1 go test -v -race --timeout 20m "$d"; done
|
2019-01-21 22:57:23 -05:00
|
|
|
- make verifiers
|
|
|
|
- make crosscompile
|
2018-08-28 04:27:01 -04:00
|
|
|
- make verify
|
2019-12-16 23:30:57 -05:00
|
|
|
- cd browser && npm install && npm run test && cd ..
|
2019-07-09 21:32:39 -04:00
|
|
|
- bash -c 'shopt -s globstar; shellcheck mint/**/*.sh'
|
|
|
|
|
2018-10-17 23:18:53 -04:00
|
|
|
- os: windows
|
|
|
|
env:
|
|
|
|
- ARCH=x86_64
|
2019-01-08 19:53:04 -05:00
|
|
|
- CGO_ENABLED=0
|
2019-04-02 21:28:39 -04:00
|
|
|
- GO111MODULE=on
|
2019-12-10 23:28:22 -05:00
|
|
|
- SIMPLE_CI=1
|
2019-09-08 19:44:15 -04:00
|
|
|
go: 1.13.x
|
2018-10-17 23:18:53 -04:00
|
|
|
script:
|
|
|
|
- go build --ldflags="$(go run buildscripts/gen-ldflags.go)" -o %GOPATH%\bin\minio.exe
|
2019-11-13 15:17:45 -05:00
|
|
|
- for d in $(go list ./... | grep -v browser); do go test -v --timeout 20m "$d"; done
|
2016-01-14 21:17:24 -05:00
|
|
|
|
2018-12-14 02:37:46 -05: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'; fi
|
|
|
|
|
2018-03-23 05:06:20 -04:00
|
|
|
before_install:
|
2019-12-16 23:30:57 -05:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then nvm install stable ; fi
|