add travis setup

This commit is contained in:
Leo Antunes 2019-03-26 23:27:49 +01:00
parent 27172a170c
commit 823b134c80
1 changed files with 36 additions and 0 deletions

36
.travis.yml Normal file
View File

@ -0,0 +1,36 @@
language: go
dist: xenial
go:
- "1.11"
- "1.12"
- "master"
os:
- linux
matrix:
allow_failures:
- go: "master"
fast_finish: true
env:
- GO111MODULE=on
script: go test -v ./...
cache:
directories:
- $HOME/gopath/pkg/mod
install: true # skip, handled by "cache" stage
stages:
- cache
- test
jobs:
include:
- stage: cache
script: go mod download -json