language: go
go:
    # - 1.7
    - 1.8
    - 1.9
    - tip
services:
    - docker
compiler:
    - g++
before_install:
    # - TESSERACT=4.00.00dev LEPTONICA=1.74.2 sudo ./test/script/setup.sh
    - sudo apt-get update -qq
    - sudo apt-get install -y -qq libtesseract-dev libleptonica-dev tesseract-ocr-eng
env:
    - LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
before_script:
    - go get github.com/otiai10/mint
script:
    - go test -v -bench .
    - go test -race -coverprofile=coverage.txt -covermode=atomic
    - ./test/runtime --driver docker
after_success:
    - bash <(curl -s https://codecov.io/bash)

language: go
go:
    - 1.11.x
services:
    - docker
compiler:
    - g++
before_install:
    # - TESSERACT=4.00.00dev LEPTONICA=1.74.2 sudo ./test/script/setup.sh
    - sudo apt-get update -qq
    - sudo apt-get install -y -qq libtesseract-dev libleptonica-dev tesseract-ocr-eng
env:
    global:
        - LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
        - GO111MODULE=on
before_script:
    - go mod download -json
script:
    - go test -v -bench .
    - go test -race -coverprofile=coverage.txt -covermode=atomic
    - ./test/runtime --driver docker
after_success:
    - bash <(curl -s https://codecov.io/bash)

Use go modules on Travis
Use go modules on Travis
