introducing circleci (#31)

Based on the dev meeting we are moving to circleci
This commit is contained in:
Carlos Tadeu Panato Junior 2019-03-06 19:03:52 +01:00 committed by Hanzei
parent c415b6b7b8
commit cf8dcecdf2
4 changed files with 34 additions and 12 deletions

30
.circleci/config.yml Normal file
View file

@ -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

View file

@ -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

View file

@ -52,7 +52,9 @@ endif
govet: govet:
ifneq ($(HAS_SERVER),) ifneq ($(HAS_SERVER),)
@echo Running govet @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 @echo Govet success
endif endif

View file

@ -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. This plugin serves as a starting point for writing a Mattermost plugin. Feel free to base your own plugin off this repository.