From 823b134c8056af3e52b36dfc6fc77d68d93d8ba4 Mon Sep 17 00:00:00 2001 From: Leo Antunes Date: Tue, 26 Mar 2019 23:27:49 +0100 Subject: [PATCH] add travis setup --- .travis.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4332505 --- /dev/null +++ b/.travis.yml @@ -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