From cf8dcecdf210d457a5548da4effb1c5bb0a1ae64 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Wed, 6 Mar 2019 19:03:52 +0100 Subject: [PATCH] introducing circleci (#31) Based on the dev meeting we are moving to circleci --- .circleci/config.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 10 ---------- Makefile | 4 +++- README.md | 2 +- 4 files changed, 34 insertions(+), 12 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..8e1d203 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,30 @@ +version: 2.1 +jobs: + lint: + docker: + - image: circleci/golang:1.12-node + + working_directory: /go/src/github.com/mattermost/mattermost-plugin-sample + steps: + - checkout + + - run: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + - run: make check-style + + test: + docker: + - image: circleci/golang:1.12-node + + working_directory: /go/src/github.com/mattermost/mattermost-plugin-sample + steps: + - checkout + + - run: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + - run: make test + +workflows: + version: 2 + untagged-build: + jobs: + - lint + - test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3ca37f8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: go -go: - - "1.11.x" - -install: - - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - -script: - - make check-style - - make test diff --git a/Makefile b/Makefile index 03b0ca9..5c39ec9 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,9 @@ endif govet: ifneq ($(HAS_SERVER),) @echo Running govet - @$(GO) vet -shadow $$(go list ./server/...) || exit 1 + $(GO) get golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow + $(GO) vet $$(go list ./server/...) + $(GO) vet -vettool=$(GOPATH)/bin/shadow $$(go list ./server/...) @echo Govet success endif diff --git a/README.md b/README.md index 689cf69..2d381e4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Sample Plugin [![Build Status](https://travis-ci.org/mattermost/mattermost-plugin-sample.svg?branch=master)](https://travis-ci.org/mattermost/mattermost-plugin-sample) +# Sample Plugin ![CircleCI branch](https://img.shields.io/circleci/project/github/mattermost/mattermost-plugin-sample/master.svg) This plugin serves as a starting point for writing a Mattermost plugin. Feel free to base your own plugin off this repository.