mirror of
https://github.com/minio/minio.git
synced 2025-01-12 07:23:23 -05:00
parent
dfadf70a7f
commit
247795dd36
28
.github/workflows/go.yml
vendored
28
.github/workflows/go.yml
vendored
@ -15,24 +15,32 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go-version: [1.13.x]
|
go-version: [1.13.x]
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest, windows-latest]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
|
- uses: actions/checkout@v2
|
||||||
uses: actions/setup-go@v1
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
id: go
|
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
|
|
||||||
- name: Build on ${{ matrix.os }}
|
- name: Build on ${{ matrix.os }}
|
||||||
|
if: matrix.os == 'windows-latest'
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
GO111MODULE: on
|
GO111MODULE: on
|
||||||
SIMPLE_CI: 1
|
SIMPLE_CI: 1
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install devscripts
|
go build --ldflags="-s -w" -o %GOPATH%\bin\minio.exe
|
||||||
|
go test -v --timeout 30m ./...
|
||||||
|
- name: Build on ${{ matrix.os }}
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GO111MODULE: on
|
||||||
|
SIMPLE_CI: 1
|
||||||
|
run: |
|
||||||
|
sudo apt-get install devscripts shellcheck
|
||||||
make
|
make
|
||||||
diff -au <(gofmt -s -d cmd) <(printf "")
|
diff -au <(gofmt -s -d cmd) <(printf "")
|
||||||
diff -au <(gofmt -s -d pkg) <(printf "")
|
diff -au <(gofmt -s -d pkg) <(printf "")
|
||||||
@ -40,3 +48,5 @@ jobs:
|
|||||||
make crosscompile
|
make crosscompile
|
||||||
make verify
|
make verify
|
||||||
make verify-healing
|
make verify-healing
|
||||||
|
cd browser && npm install && npm run test && cd ..
|
||||||
|
bash -c 'shopt -s globstar; shellcheck mint/**/*.sh'
|
||||||
|
52
.travis.yml
52
.travis.yml
@ -1,52 +0,0 @@
|
|||||||
go_import_path: github.com/minio/minio
|
|
||||||
|
|
||||||
language: go
|
|
||||||
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- shellcheck
|
|
||||||
|
|
||||||
services:
|
|
||||||
- docker
|
|
||||||
|
|
||||||
# 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
|
|
||||||
- SIMPLE_CI=1
|
|
||||||
go: 1.13.x
|
|
||||||
script:
|
|
||||||
- cd browser && npm install && npm run test && cd ..
|
|
||||||
- bash -c 'shopt -s globstar; shellcheck mint/**/*.sh'
|
|
||||||
|
|
||||||
- os: windows
|
|
||||||
env:
|
|
||||||
- ARCH=x86_64
|
|
||||||
- CGO_ENABLED=0
|
|
||||||
- GO111MODULE=on
|
|
||||||
- SIMPLE_CI=1
|
|
||||||
go: 1.13.x
|
|
||||||
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 --timeout 20m "$d" || exit -1; done
|
|
||||||
|
|
||||||
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 stable ; fi
|
|
Loading…
Reference in New Issue
Block a user