os: linux

language: go

go:
  - 1.13.x

env:
  global:
    - GO111MODULE=on

before_install:
  - if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install make zip; fi
  - go get ./...

script:
  - echo ">>> Run build"
  - go env GOOS
  - make build
  - make pack_artifacts

builds: &builds
  stage: build

jobs:
  include:
    - <<: *builds
      os: osx
      osx_image: xcode11.3
    - <<: *builds
      os: windows
    - <<: *builds
      os: linux
    - stage: deploy
      script: skip
      deploy:
        - provider: releases
          skip_cleanup: true
          github-token: $GITHUB_TOKEN
          file_glob: true
          file: artifacts/**
          on:
            tags: true
            condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+
os: linux

language: go

go:
  - 1.13.x

env:
  global:
    - GO111MODULE=on

before_install:
  - if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install make zip; fi
  - go get ./...

script:
  - echo ">>> Run build"
  - go env GOOS
  - make build
  - make pack_artifacts

builds: &builds
  stage: build

jobs:
  include:
    - <<: *builds
      os: osx
      osx_image: xcode11.3
    - <<: *builds
      os: windows
    - <<: *builds
      os: windows
      env: GOARCH=386
    - <<: *builds
      os: linux
      env: GOARCH=386
    - <<: *builds
      os: linux
    - stage: deploy
      script: skip
      deploy:
        - provider: releases
          skip_cleanup: true
          github-token: $GITHUB_TOKEN
          file_glob: true
          file: artifacts/**
          on:
            tags: true
            condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+
Add x86 builds for windows and linux
Add x86 builds for windows and linux
