This repository has been archived by the owner on Jun 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support custom Unmarshal, remove etcd and vault service
- Loading branch information
Showing
30 changed files
with
196 additions
and
1,143 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 |
---|---|---|
@@ -1,42 +1,17 @@ | ||
sudo: false | ||
language: go | ||
go: | ||
- 1.7 | ||
matrix: | ||
include: | ||
- go: "1.10.x" | ||
- go: "1.11.x" | ||
|
||
before_install: | ||
- bash build_etcd.sh | ||
- go get -t -v ./... | ||
- cd $GOPATH/src/github.com/hashicorp/vault && git checkout v0.6.4 && cd - | ||
env: | ||
- GO111MODULE=on | ||
|
||
install: | ||
- go get github.com/haya14busa/reviewdog/cmd/reviewdog | ||
- go get github.com/modocache/gover | ||
before_install: | ||
- go get -v -t ./... | ||
- go get github.com/mattn/goveralls | ||
- go get github.com/golang/lint/golint | ||
- go get honnef.co/go/staticcheck/cmd/staticcheck | ||
- go get honnef.co/go/simple/cmd/gosimple | ||
- go get github.com/kisielk/errcheck | ||
- go get honnef.co/go/unused/cmd/unused | ||
|
||
before_script: | ||
- echo $TRAVIS | ||
- echo $TRAVIS_PULL_REQUEST | ||
- echo $TRAVIS_PULL_REQUEST_BRANCH | ||
- echo $TRAVIS_COMMIT | ||
- echo $TRAVIS_PULL_REQUEST_SHA | ||
- echo $TRAVIS_REPO_SLUG | ||
- echo $TRAVIS_SECURE_ENV_VARS | ||
|
||
script: | ||
- go test -coverprofile=vault.coverprofile ./vault | ||
- go test -coverprofile=etcd.coverprofile ./etcd | ||
- >- | ||
reviewdog -ci=travis | ||
after_success: | ||
- gover | ||
- goveralls -coverprofile=gover.coverprofile -service=travis-ci | ||
|
||
env: | ||
global: | ||
secure: IlYRR6Esh/i2VOoSJ4f8xarx4Z8paN5UZPCROuRdLAfoe/vM4FjQa9bkjwRdwQ5QdGZVFZvQVoXDzHiQrpM4tDuVUieKqJ6m2JtxL4kYgdNoeVvZpIxDkYy5jLRSGEm/GkZLrkcbaai8uy5HYtUW62UJJUgBRci0YQsDkZz5+AvKrAYuwQwbg+BQ1J131rsSmXJtyIgxJC20reJ1u3uCEs0Ib99g4l7czVd5sqmdukoaeMuSYQXDCYuU7wLDrga5x+9vFMHK6ifHvlw9ZuGVWPtN0H8UTAZJW5gNCk0LZr37OmhaapWmTVdhaJhCY1lsZlAdzZA3lx4hEb0h/6C6zQDFgA0M+SUegptJy20Hxr6Y3Cn6lduJeiSevEr1iNKVLTyGw1/XHd6pWQPOvugrRzCXF8LUwm6IVjhrnc/kW5RKd07jHGVS2XicFdyFyHEtkyZEOut/9bqxvGk+8d5l8ARRdweY5jg7grLHsDDjqskORowL1NIXzNd4BnTWUX7tAYs0D/TsfBN+TeMPuoPFQ/0Gv0W5RBDcMiAunYRtX1Le2PfUVK1sW9VBQGGHaMloHq5X4AHJQMerYkOHW88E6IajTBw7qhJfcE8OVn2lCgvD6wfFtxTWj/X3eB3CNe/y6bXTbG/+667ndvpymoNEcLnZcG57tB6i3JZPBWSGOfU= | ||
- go test -v ./... -coverprofile=coverage.out && go tool cover -func=coverage.out | ||
- goveralls -coverprofile=coverage.out -service=travis-ci |
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,10 @@ | ||
test: | ||
go test --race ./vault | ||
go test --race ./etcd | ||
go test --race ./... | ||
|
||
cover: | ||
rm -f *.coverprofile | ||
go test -race -coverprofile=vault.coverprofile ./vault | ||
go test -race -coverprofile=etcd.coverprofile ./etcd | ||
gover | ||
go tool cover -html=gover.coverprofile | ||
rm -f *.coverprofile | ||
rm -f *.out | ||
go test -v ./... -coverprofile=coverage.out && go tool cover -func=coverage.out | ||
go tool cover -html=coverage.out | ||
rm -f *.out | ||
|
||
.PHONY: test cover |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package confl_test | ||
|
||
// Config - your configuration struct | ||
type Config struct { | ||
Username string `yaml:"username"` | ||
Password string `yaml:"password"` | ||
Token string `yaml:"token"` | ||
In ConfigIn `yaml:"in"` | ||
} | ||
|
||
// ConfigIn - | ||
type ConfigIn struct { | ||
Addr string `yaml:"addr"` | ||
Pass string `yaml:"pass"` | ||
} |
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,9 @@ | ||
{ | ||
"username": "username", | ||
"password": "1234", | ||
"token": "4321", | ||
"in": { | ||
"addr": "localhost", | ||
"pass": "666" | ||
} | ||
} |
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,6 @@ | ||
username: username | ||
password: '1234' | ||
token: '4321' | ||
in: | ||
addr: localhost | ||
pass: '666' |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.