From c7a21cdd2d40e3e3ed7825f42ca9c06911e7e818 Mon Sep 17 00:00:00 2001 From: Ivan Ilves Date: Sat, 16 Sep 2017 16:12:22 +0200 Subject: [PATCH] Add shell test --- .travis.yml | 2 +- Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 79181fe..58b3563 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,9 +16,9 @@ script: - make unit-test - make package-test - make integration-test + - make shell-test - make lint - make vet - - make build branches: only: diff --git a/Makefile b/Makefile index 20dc42e..2ebb9dc 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,10 @@ package-test: integration-test: go test -integration -v +shell-test: build + ./lstags alpine | egrep "\salpine:latest" + ./lstags nobody/nothing &>/dev/null && exit 1 || true + lint: ERRORS:=$(shell find . -name "*.go" ! -path "./vendor/*" | xargs -i golint {}) lint: fail-on-errors