From 92843c4853634a75b1a991c77c663926ee340bcd Mon Sep 17 00:00:00 2001 From: Andy Zhao Date: Thu, 8 Aug 2019 14:24:31 -0400 Subject: [PATCH] Update Travis to run Go integration tests. (#76) --- .travis.yml | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9c723ce..b790852 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,22 @@ -language: python -sudo: false +language: go + env: - - TOX_ENV=py27 - - TOX_ENV=py35 -install: - - cd python - - pip install tox - - pip install . -script: tox -e $TOX_ENV -after_success: - - if [[ "${TOX_ENV}" == "py27" ]]; then tox -e coveralls; fi + - GO111MODULE=on + +go: + - 1.12.x + - 1.11.x + +# Only clone the most recent commit. +git: + depth: 1 + +# Skip the install step. +install: true + +# Don't email the results of the test runs. +notifications: + email: false -# Tweak for adding python3.5; see -# https://github.com/travis-ci/travis-ci/issues/4794 -addons: - apt: - sources: - - deadsnakes - packages: - - python3.5 +script: + - go test integration/cli_test.go