Permalink
Browse files

add .drone.yml

  • Loading branch information...
1 parent d1662cb commit 0b82f65bc823576b4d10cb9e262c8482a6a364b8 @haya14busa committed Dec 3, 2016
Showing with 26 additions and 0 deletions.
  1. +1 −0 .drone.sec
  2. +25 −0 .drone.yml
View
@@ -0,0 +1 @@
+eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.0oFEs0rWuFWbIrnL8syhyK3duLSLvDmGsv0xkiD9OAXbsjaZWKmRUgi4rKw_FObLwDkC1x5L5NB-ByiBbUwNhyosjlEVDp458xEXUCYlcwcnr1RbOG9W07EiQCTgl61Tvdq-dS759GuefpzWu3TzuQw-iTKNKbtHZrs1dlxl1sGl0FLM7oHEv4O8beAAjTH7ltC-KNmowFWWeqONb6A_dxonOSWiNZVGzHjqiVrzMc5uVEBeZYi9fLwrDUB2CIUkPhLZKFI3WKDxcDTWH3spi64zrvYo6Gdy9eCKHYJc-qciBeBCNtAoFRNdOWsa6ZnfmWa_RNwkvAlk8uTJn0IYbQ.dpPUBDj_1mWbEK8g.D2LXfkxlmCTVZIRTNVN7AX-sx0UwQ1BnF1MdRuCyZ1XnMAYdIz-hxjSH3zJop8pRN012hCt7xeBM63cyIM7JMleGxmRJYij7mkxgPQ6p_4ibHbymyoseHMue0Kxg0bAw32F_F6FiBVF_wMUxkz0Oj745CAZ7r_zc4Le8csvLZl7h08WDL03a7CCTL4xbgMUOM-ZA8d3N27A3Xpdzvy9k.FSpfgFLnLcL9tjjAuoM_Iw
View
@@ -0,0 +1,25 @@
+# Run the below command when you edit .drone.yml
+# drone secure --repo haya14busa/go-vimlparser --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

0 comments on commit 0b82f65

Please sign in to comment.