From 5d95fbd6cd319926f072c36ca5d21c0900034bd8 Mon Sep 17 00:00:00 2001 From: tpalino Date: Thu, 12 May 2016 11:33:58 -0700 Subject: [PATCH] Add Travis config and a single dummy test --- .travis.yml | 11 +++++++++++ main_test.go | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .travis.yml create mode 100644 main_test.go diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e030b4e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: go +go: + - 1.6.2 + - 1.5.4 + - 1.4.3 +before_script: + - go vet ./... +install: + # Add Godeps dependencies to GOPATH and PATH + - export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace:$GOPATH" + - export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH" diff --git a/main_test.go b/main_test.go new file mode 100644 index 0000000..8c14036 --- /dev/null +++ b/main_test.go @@ -0,0 +1,10 @@ +package main + +import ( + "testing" +) + +// This is just a dummy test function to have a base to start with for Travis +func Test_dummy(t *testing.T) { + t.Log("Dummy test passed") +}