Skip to content

Commit

Permalink
Merge 91b206e into 1d9e8c1
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Oct 24, 2016
2 parents 1d9e8c1 + 91b206e commit 8082817
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .drone.sec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.T0DfD55J-CMbYf3M5JwHF6Iu3kw-OJIyvUHqLuRazzHn9PNk-DoVPsdMVANy2lFjVPyDteLkiiSO08NjE9mQueArIGuSQ5smNbfCIJRbuodNCstGJu-_Gwq2-JUhqMvFpbZOK92d1eOyDAylLs0btaWrnjGYN6cc7qDmvnvulCIR3d_dsO3r_a3ZjXpyLRl6RajPVaQyqz8rqWpg2rN1lPjcaPZEl6DR5ATOHNj0mrkRDnrRp5Yy79JB5w3c-mYjqSM8nFZu83Rvcra2_Iby6jY8mV-GlTZ6hLSOO4LIPFSjlbeXMh3uYc6vEXbbzZiOSXEizu0IhzU68dI8TmlPpQ.aJTZ-Mmszfslvl-M.OenD9dYsEeEp28DiNK0ktUwBnkVqKf5J_KE1Lx0j_QnOBhVOQucWfr51gb-5UDIjFSdkw9mXXLY_dFf9Xcs0puW7xlJeG3q5uWec9A8pV4ncipb-9z2XJ3Uwp6J-YrmTwGV9UFCnRTCIlOQg1oW22AGULTewwReRCsFrittUIm8ymNjVAYcOw1q1hONbxKIv22UkttPFV2EhG5iUPHnv.RHCaqwIPFTirSg2wYkbD5w
4 changes: 4 additions & 0 deletions .drone.sec.sample.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# copy this file to .drone.sec.yaml and insert <REVIEWDOG_GITHUB_API_TOKEN>
# cp .drone.sec.sample.yaml .drone.sec.yaml
environment:
REVIEWDOG_GITHUB_API_TOKEN: <REVIEWDOG_GITHUB_API_TOKEN>
25 changes: 25 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Run the below command when you edit .drone.yml
# drone secure --repo haya14busa/errorformat --in .drone.sec.yaml
#
build:
test:
image: golang
commands:
- go get -d -v -t ./...
- go test -v ./...
lint:
image: golang
environment:
- REVIEWDOG_GITHUB_API_TOKEN=$$REVIEWDOG_GITHUB_API_TOKEN
commands:
- go get github.com/haya14busa/reviewdog/cmd/reviewdog
- go get github.com/golang/lint/golint
- go get honnef.co/go/unused/cmd/unused
- |
go tool vet -all -shadowstrict . 2>&1 | reviewdog -f=govet -ci=droneio
- |
golint ./... | reviewdog -f=golint -ci=droneio
- |
unused ./... | reviewdog -efm="%f:%l:%c: %m" -ci=droneio
when:
event: pull_request
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.drone.sec.yaml

0 comments on commit 8082817

Please sign in to comment.