From ce89e15071a5ad4a1d330bc3c61ef37f3579032b Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 18 Mar 2019 17:22:28 +0100 Subject: [PATCH 1/5] fix(travis): execute 'go vet' instead of 'go tool vet' --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5f157433a..6c7b0738a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,5 +18,5 @@ script: - PATH=$PATH:$PWD/bin go test -v ./... - go build - if [ -z $NOVET ]; then - diff -u <(echo -n) <(go tool vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint'); + diff -u <(echo -n) <(go vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint'); fi From 2a2175e903b1733eb05324a54f1cad39c80d8c60 Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 18 Mar 2019 17:23:22 +0100 Subject: [PATCH 2/5] chore(travis): move 'diff' job to separate stage in Travis --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6c7b0738a..3c4fc138c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,16 @@ language: go +stages: + - diff + - test + matrix: include: - go: 1.10.x - go: 1.11.x - go: tip - - go: 1.11.x + - stage: diff + go: 1.11.x script: diff -u <(echo -n) <(gofmt -d -s .) allow_failures: - go: tip From 8cc3a504e77e464d0a38f65877cf98b409c97ede Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 18 Mar 2019 17:25:53 +0100 Subject: [PATCH 3/5] chore(travis): use language configuration list instead of explicit entries in matrix.include --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3c4fc138c..94fc8c108 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,11 +4,13 @@ stages: - diff - test +go: + - 1.10.x + - 1.11.x + - tip + matrix: include: - - go: 1.10.x - - go: 1.11.x - - go: tip - stage: diff go: 1.11.x script: diff -u <(echo -n) <(gofmt -d -s .) From a7af3e26ad4bd21a9e2fb9cc803a02daca360611 Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 18 Mar 2019 17:02:32 +0100 Subject: [PATCH 4/5] feat(travis): run tests agains go 1.12.x --- .travis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 94fc8c108..e8eb8db6d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,15 +7,16 @@ stages: go: - 1.10.x - 1.11.x + - 1.12.x - tip matrix: + allow_failures: + - go: tip include: - stage: diff - go: 1.11.x + go: 1.12.x script: diff -u <(echo -n) <(gofmt -d -s .) - allow_failures: - - go: tip before_install: - mkdir -p bin From c6f4fd9ec0034ac75078dd4e0c61a5185a08191b Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 18 Mar 2019 17:39:45 +0100 Subject: [PATCH 5/5] chore(travis): update shellcheck-docker to v0.6.0 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e8eb8db6d..59bc10efc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ matrix: before_install: - mkdir -p bin - - curl -Lso bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.4.3/shellcheck + - curl -Lso bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.6.0/shellcheck - chmod +x bin/shellcheck script: - PATH=$PATH:$PWD/bin go test -v ./...