sudo: required

language: go

services:
  - docker

go:
  - 1.14.x

arch:
  - amd64
  - arm64

os:
  - linux

jobs:
  include:
   - os: linux
     arch: amd64
   - os: linux
     arch: arm64
   - stage: Push Docker manifest
     env:
       - DOCKER_CLI_EXPERIMENTAL=enabled
     script:
       - if [ "$TRAVIS_OS_NAME" == "linux" -a ! -z "$TRAVIS_TAG" ]; then
           echo "Executing release-manifest on tag build $TRAVIS_TAG";
           docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
           make release-manifest;
         fi

before_install:
  - go get -v github.com/mattn/goveralls

install:
  - make setup

script:
  - make build
  - make test-race
  - make check
  - make bench-race
  - make coveralls

after_success:
  - if [ "$TRAVIS_BUILD_STAGE_NAME" == "test" -a "$TRAVIS_OS_NAME" == "linux" -a ! -z "$TRAVIS_TAG" ]; then
    echo "Executing release on tag build $TRAVIS_TAG";
    docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
    ARCH=linux CPU_ARCH="$TRAVIS_CPU_ARCH" make release;
    else
    echo "Not executing release on non-tag build";
    fi

sudo: required

language: go

services:
  - docker

go:
  - 1.16.x

arch:
  - amd64
  - arm64

os:
  - linux

jobs:
  include:
   - os: linux
     arch: amd64
   - os: linux
     arch: arm64
   - stage: Push Docker manifest
     env:
       - DOCKER_CLI_EXPERIMENTAL=enabled
     script:
       - if [ "$TRAVIS_OS_NAME" == "linux" -a ! -z "$TRAVIS_TAG" ]; then
           echo "Executing release-manifest on tag build $TRAVIS_TAG";
           docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
           make release-manifest;
         fi

before_install:
  - go get -v github.com/mattn/goveralls

install:
  - make setup

script:
  - make build
  - make test-race
  - make check
  - make bench-race
  - make coveralls

after_success:
  - if [ "$TRAVIS_BUILD_STAGE_NAME" == "test" -a "$TRAVIS_OS_NAME" == "linux" -a ! -z "$TRAVIS_TAG" ]; then
    echo "Executing release on tag build $TRAVIS_TAG";
    docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
    ARCH=linux CPU_ARCH="$TRAVIS_CPU_ARCH" make release;
    else
    echo "Not executing release on non-tag build";
    fi

Upgrade Travis to use go 1.16.x
Upgrade Travis to use go 1.16.x
