From 6e77c714b55bdeb7a7305f918edd8f05002619ee Mon Sep 17 00:00:00 2001 From: knqyf263 Date: Fri, 24 Feb 2017 20:10:07 +0900 Subject: [PATCH] Add .travis.yml --- .travis.yml | 6 ++++++ GNUmakefile | 3 ++- README.md | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..c4552c6f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: go + +go: + - 1.7 + - 1.8 + diff --git a/GNUmakefile b/GNUmakefile index f30593ca..24f088f7 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -22,6 +22,8 @@ REVISION := $(shell git rev-parse --short HEAD) LDFLAGS := -X 'main.version=$(VERSION)' \ -X 'main.revision=$(REVISION)' +all: glide deps build test + glide: go get github.com/Masterminds/glide @@ -37,7 +39,6 @@ build: main.go deps install: main.go deps go install -ldflags "$(LDFLAGS)" -all: test lint: @ go get -v github.com/golang/lint/golint diff --git a/README.md b/README.md index 9c0697b7..a3fd671b 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Slack](https://img.shields.io/badge/slack-join-blue.svg)](http://goo.gl/forms/xm5KFo35tu) [![License](https://img.shields.io/github/license/future-architect/vuls.svg?style=flat-square)](https://github.com/future-architect/vuls/blob/master/LICENSE.txt) +[![Build Status](https://travis-ci.org/future-architect/vuls.svg?branch=master)](https://travis-ci.org/future-architect/vuls) ![Vuls-logo](img/vuls_logo.png)