---
language: go
os:
  - linux
  - osx
  - windows
dist: xenial
sudo: false

go:
  - 1.11
  - 1.12
  - 1.13

addons:
  apt:
    packages:
    - libgpgme11-dev
  homebrew:
    packages:
    - gnupg
    - gnupg@1.4
    - gpgme
    update: true

matrix:
  allow_failures:
    - os: windows

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install msys2; fi
  - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install gpg4win; fi
