Skip to content

Commit

Permalink
Update Travis to run Go integration tests. (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyrzhao authored and shinfan committed Aug 8, 2019
1 parent ff562ae commit 92843c4
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 92843c4

Please sign in to comment.