introducing circleci (#31)
Based on the dev meeting we are moving to circleci
This commit is contained in:
parent
c415b6b7b8
commit
cf8dcecdf2
4 changed files with 34 additions and 12 deletions
30
.circleci/config.yml
Normal file
30
.circleci/config.yml
Normal 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
|
10
.travis.yml
10
.travis.yml
|
@ -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
|
|
4
Makefile
4
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Sample Plugin [](https://travis-ci.org/mattermost/mattermost-plugin-sample)
|
# Sample Plugin 
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
|
|
Reference in a new issue