From 3ac4060b4b40512fd8c2b087aa79fe0624ff2fd0 Mon Sep 17 00:00:00 2001 From: Ramya Achutha Rao Date: Mon, 24 Oct 2016 12:44:42 -0700 Subject: [PATCH] Adding logs to debug test failure --- .travis.yml | 4 +--- src/goInstallTools.ts | 1 + test/go.test.ts | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1ee59f3d3..f89e120fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,11 @@ language: go go: - 1.5 - - 1.6 - - 1.7 + sudo: false os: - - osx - linux before_install: diff --git a/src/goInstallTools.ts b/src/goInstallTools.ts index e38883f25..d946f0de7 100644 --- a/src/goInstallTools.ts +++ b/src/goInstallTools.ts @@ -224,6 +224,7 @@ export function getGoVersion(): Promise { } return new Promise((resolve, reject) => { cp.execFile(goRuntimePath, ['version'], {}, (err, stdout, stderr) => { + console.log(`Go Version output is: ${stdout}`); let matches = /go version go(\d).(\d).*/.exec(stdout); if (matches) { goVersion = { diff --git a/test/go.test.ts b/test/go.test.ts index 88b8c79a2..7c4ec9b78 100644 --- a/test/go.test.ts +++ b/test/go.test.ts @@ -189,6 +189,7 @@ encountered. test('Test Generate unit tests squeleton for file', (done) => { getGoVersion().then(version => { + console.log(`Major: ${version.major} Minor: ${version.minor}`); if (version.major === 1 && version.minor === 5) { // gotests is not supported in Go 1.5, so skip the test return Promise.resolve();