Skip to content

Commit

Permalink
Adding CircleCI (#54)
Browse files Browse the repository at this point in the history
Based on the dev meeting we are moving to circleci
  • Loading branch information
cpanato authored and hanzei committed Mar 6, 2019
1 parent 0697d61 commit ad6c275
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 12 deletions.
30 changes: 30 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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-github
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-github
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 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ endif
govet:
ifneq ($(HAS_SERVER),)
@echo Running govet
@$(GO) vet $$(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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Mattermost GitHub Plugin [![Build Status](https://travis-ci.org/mattermost/mattermost-plugin-github.svg?branch=master)](https://travis-ci.org/mattermost/mattermost-plugin-github)
# Mattermost GitHub Plugin ![CircleCI branch](https://img.shields.io/circleci/project/github/mattermost/mattermost-plugin-github/master.svg)

A GitHub plugin for Mattermost. The plugin is currently in beta.

Expand Down
1 change: 1 addition & 0 deletions server/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ad6c275

Please sign in to comment.