language: go

go:
  - "1.11"
  - "1.x"

env:
  - GO111MODULE=on

sudo: required

services:
  - docker

before_install:
  - GO111MODULE=off go get github.com/mattn/goveralls

script:
  - unset TRAVIS_GO_VERSION
  # test the examples first
  - make clean examples
  # test pebble integration
  - make clean pebble
  # test boulder integration
  - make clean boulder
  - goveralls -coverprofile=coverage.out -service=travis-ci
