Skip to content

Commit

Permalink
Merge pull request #1 from mattermost/use_cci
Browse files Browse the repository at this point in the history
add circleci
  • Loading branch information
jwilander authored Mar 1, 2019
2 parents 2c6316a + 0e9fe0f commit ddf5fb2
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 28 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-custom-attributes
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-custom-attributes
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
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ endif
govet:
ifneq ($(HAS_SERVER),)
@echo Running govet
@$(GO) vet -shadow $$(go list ./server/...) || exit 1
$(GO) get -u golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
$(GO) vet $(GOFLAGS) $$(go list ./server/...) || exit 1
$(GO) vet -vettool=$(which shadow) $$(go list ./server/...) || exit 1
@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 Custom Attributes Plugin
# Mattermost Custom Attributes Plugin [![CircleCI](https://circleci.com/gh/mattermost/mattermost-plugin-custom-attributes.svg?style=svg)](https://circleci.com/gh/mattermost/mattermost-plugin-custom-attributes)

This plugin allows you to add custom attributes to users in your Mattermost. Currently it only exposes those attributes in the profile popover of users but in the future the plan is to extend the plugin to allow adding badges next to usernames based on attributes and potentially display the attributes in other places.

Expand Down
26 changes: 0 additions & 26 deletions server/plugin_test.go

This file was deleted.

0 comments on commit ddf5fb2

Please sign in to comment.