Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from suzuki-shunsuke/feat/first-pr
Browse files Browse the repository at this point in the history
Feat/first pr
  • Loading branch information
suzuki-shunsuke authored Apr 29, 2018
2 parents f9aae20 + 163285f commit f5dc411
Show file tree
Hide file tree
Showing 205 changed files with 17,664 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
vendor
example
coverage.txt
coverage
node_modules
*.log
graylog-mock-server
dist
docker-compose.yml
env.sh
21 changes: 21 additions & 0 deletions .gometalinter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"DisableAll": true,
"Enable": [
"vet",
"nakedret",
"misspell",
"gosimple",
"unused",
"maligned",
"interfacer",
"unconvert",
"goimports",
"gofmt",

"varcheck",
"structcheck",
"goconst"
],
"Vendor": true,
"Deadline": "300s"
}
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
language: go
go:
- 1.x
before_install:
- node -v
- npm -v
install:
- npm install
- go get -t ./...
- go get -u gopkg.in/alecthomas/gometalinter.v2
- ln -s $GOPATH/bin/gometalinter.v2 $GOPATH/bin/gometalinter
- gometalinter --install
script:
- npm run commitlint-travis
- npm run lint
- bash codecov-test.sh
after_success:
- bash codecov.sh
- bash upload.sh
63 changes: 63 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Contributing

## Requirements

* [npm](https://www.npmjs.com/): to validate a commit message and generate the Change Log
* [Golang](https://golang.org/)
* [dep](https://golang.github.io/dep/)
* [gometalinter](https://github.com/alecthomas/gometalinter)

```
$ npm i
```

## Test

```
$ npm t
```

## Commit Message Format

The commit message format of this project conforms to the [AngularJS Commit Message Format](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format).
By conforming its format, we can generate the [Change Log](CHANGELOG.md) and conform the [semantic versioning](http://semver.org/) automatically by [standard-version](https://www.npmjs.com/package/standard-version).
We validate the commit message with git's `commit-msg` hook using [commitlint](http://marionebl.github.io/commitlint/#/) and [husky](https://www.npmjs.com/package/husky).

## Coding Guide

* https://github.com/golang/go/wiki/CodeReviewComments
* https://github.com/alecthomas/gometalinter

```
$ go get -u github.com/alecthomas/gometalinter
$ gometalinter --install
```

```
$ npm run lint
```

## docker-compose.yml

To run graylog using docker for development, we prepare the template of `docker-compose.yml`.


```
$ cp docker-compose.yml.tmpl docker-compose.yml
$ docker-compose up -d
```

## env.sh

To set environment variables for development, we prepare the template of `setenv.sh` .

```
$ cp env.sh.tmpl env.sh
```

## Develop terraform provider

* https://www.terraform.io/docs/plugins/provider.html
* https://www.terraform.io/guides/writing-custom-terraform-providers.html
* https://godoc.org/github.com/hashicorp/terraform/helper/schema
* https://godoc.org/github.com/hashicorp/terraform/helper/resource#TestCase
Loading

0 comments on commit f5dc411

Please sign in to comment.