forked from open-telemetry/opentelemetry-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Circle CI config and remove Travis CI config (open-telemetry#233)
Also update Makefile to build tools locally. Similar to open-telemetry/oteps#14.
- Loading branch information
1 parent
518dd7f
commit 5b32bd4
Showing
5 changed files
with
29 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
version: 2 | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/golang:1.12 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Verify | ||
command: make precommit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,7 @@ bin | |
\#*\# | ||
|
||
# Vim | ||
.swp | ||
.swp | ||
|
||
# Misspell binary | ||
.tools |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
# All documents to be used in spell check. | ||
ALL_DOC := $(shell find . -name '*.md' -type f | sort) | ||
|
||
MISSPELL=misspell -error | ||
MISSPELL_CORRECTION=misspell -w | ||
TOOLS_DIR := ./.tools | ||
MISSPELL_BINARY=$(TOOLS_DIR)/misspell | ||
|
||
.PHONY: travis-ci | ||
travis-ci: misspell | ||
.PHONY: precommit | ||
precommit: install-misspell misspell | ||
|
||
.PHONY: misspell | ||
.PHONY: install-misspell | ||
install-misspell: go.mod go.sum internal/tools.go | ||
go build -o $(MISSPELL_BINARY) github.com/client9/misspell/cmd/misspell | ||
|
||
.PHONY: misspell | ||
misspell: | ||
$(MISSPELL) $(ALL_DOC) | ||
$(MISSPELL_BINARY) -error $(ALL_DOCS) | ||
|
||
.PHONY: misspell-correction | ||
.PHONY: misspell-correction | ||
misspell-correction: | ||
$(MISSPELL_CORRECTION) $(ALL_DOC) | ||
|
||
.PHONY: install-tools | ||
install-tools: | ||
GO111MODULE=on go install \ | ||
github.com/client9/misspell/cmd/misspell | ||
$(MISSPELL_BINARY) -w $(ALL_DOCS) |