forked from tsenart/vegeta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
701 additions
and
166 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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{{ if .Versions -}} | ||
<a name="unreleased"></a> | ||
## [Unreleased] | ||
|
||
{{ if .Unreleased.CommitGroups -}} | ||
{{ range .Unreleased.CommitGroups -}} | ||
{{ range .Commits -}} | ||
- {{ .Header }} | ||
{{ end }} | ||
{{ end -}} | ||
{{ end -}} | ||
{{ end -}} | ||
|
||
{{ range .Versions }} | ||
<a name="{{ .Tag.Name }}"></a> | ||
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }} | ||
{{ range .CommitGroups -}} | ||
{{ range .Commits -}} | ||
- {{ .Header }} | ||
{{ end }} | ||
{{ end -}} | ||
|
||
{{- if .RevertCommits -}} | ||
### Reverts | ||
{{ range .RevertCommits -}} | ||
- {{ .Revert.Header }} | ||
{{ end }} | ||
{{ end -}} | ||
|
||
{{- if .MergeCommits -}} | ||
### Pull Requests | ||
{{ range .MergeCommits -}} | ||
- {{ .Header }} | ||
{{ end }} | ||
{{ end -}} | ||
|
||
{{- if .NoteGroups -}} | ||
{{ range .NoteGroups -}} | ||
### {{ .Title }} | ||
{{ range .Notes }} | ||
{{ .Body }} | ||
{{ end }} | ||
{{ end -}} | ||
{{ end -}} | ||
{{ end -}} | ||
|
||
{{- if .Versions }} | ||
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD | ||
{{ range .Versions -}} | ||
{{ if .Tag.Previous -}} | ||
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }} | ||
{{ end -}} | ||
{{ end -}} | ||
{{ end -}} |
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,26 @@ | ||
style: github | ||
template: CHANGELOG.tpl.md | ||
info: | ||
title: CHANGELOG | ||
repository_url: https://github.com/tsenart/vegeta | ||
options: | ||
commits: | ||
# filters: | ||
# Type: | ||
# - feat | ||
# - fix | ||
# - perf | ||
# - refactor | ||
commit_groups: | ||
# title_maps: | ||
# feat: Features | ||
# fix: Bug Fixes | ||
# perf: Performance Improvements | ||
# refactor: Code Refactoring | ||
header: | ||
pattern: "^(.*)$" | ||
pattern_maps: | ||
- Subject | ||
notes: | ||
keywords: | ||
- BREAKING CHANGE |
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,17 @@ | ||
# Contributing | ||
|
||
Non trivial changes should be discussed with the project maintainers by | ||
opening a [Feature Request](https://github.com/tsenart/vegeta/issues/new?template=feature_request.md), | ||
clearly explaining rationale, background and possible implementation ideas. | ||
Feel free to use to provide code in such discussions. | ||
|
||
## Implementation | ||
|
||
Work should happen in an open pull request with a WIP label | ||
which gives visibility to the development process and provides | ||
continuous integration feedback. | ||
|
||
The pull request description must be well written and provide the necessary | ||
context and background for review. If there's a proposal issue, it must be | ||
referenced. When ready, remove the WIP label assign the PR a reviewer who will | ||
review your PR. |
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,38 @@ | ||
--- | ||
name: 🐛 Bug Report | ||
about: Report a bug to help Vegeta improve. | ||
--- | ||
|
||
<!-- ⚠️ If you do not respect this template your bug report issue will be closed. --> | ||
|
||
#### Version and Runtime | ||
|
||
``` | ||
Paste the output of `vegeta -version` here. | ||
If you are not running the latest version of Vegeta, please try upgrading because your issue may have already been fixed. | ||
``` | ||
|
||
#### Expected Behaviour | ||
|
||
<!-- What did you expect to see? --> | ||
|
||
#### Actual Behaviour | ||
|
||
<!-- What did you see instead? --> | ||
|
||
#### Steps to Reproduce | ||
|
||
<!-- Please list the full steps required to reproduce the bug. --> | ||
|
||
1. Step 1 | ||
1. Step N | ||
|
||
#### Additional Context | ||
|
||
<!-- | ||
Are there any other related GitHub issues (open or closed) or Pull Requests that should be linked here? | ||
Is there anything atypical to be known about your situation? | ||
Anything else? | ||
--> |
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,19 @@ | ||
--- | ||
name: 🚀 Feature Request | ||
about: Propose a change to Vegeta💡! | ||
--- | ||
|
||
<!-- ⚠️ If you do not respect this template your issue will be closed. --> | ||
<!-- ⚠️ Make sure to browse the opened and closed issues before submit your issue. --> | ||
|
||
#### Proposal | ||
|
||
<!-- Write your feature request in the form of a proposal to be considered for implementation --> | ||
|
||
#### Background | ||
|
||
<!-- Describe the background problem or need that led to this feature request --> | ||
|
||
#### Workarounds | ||
|
||
<!-- Are there any current workarounds that you're using that others in similar positions should know about? --> |
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 @@ | ||
--- | ||
name: ❓ Question | ||
about: Ask a question that isn't a feature request nor a bug report. | ||
--- | ||
|
||
#### Question |
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 @@ | ||
#### Background | ||
|
||
<!-- Required background information to understand the PR. Link here any related issues. --> | ||
|
||
#### Checklist | ||
|
||
- [ ] Git commit messages conform to [community standards](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html). | ||
- [ ] Each Git commit represents meaningful milestones or atomic units of work. | ||
- [ ] Changed or added code is covered by appropriate tests. |
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 |
---|---|---|
|
@@ -25,3 +25,5 @@ vegeta | |
vegeta.test | ||
vegeta-*.tar.gz | ||
lib/lib.test | ||
dist | ||
vendor |
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,29 @@ | ||
builds: | ||
- goos: | ||
- freebsd | ||
- linux | ||
- darwin | ||
- windows | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
env: | ||
- CGO_ENABLED=0 | ||
flags: | ||
- -a | ||
- -tags="netgo" | ||
ldflags: | ||
- -s -w -extldflags "-static" -X main.Version={{.Version}} -X main.Commit={{.Commit}} -X main.Date={{.Date}}" | ||
|
||
archive: | ||
name_template: "{{.ProjectName}}-{{.Version}}-{{.Os}}-{{.Arch}}" | ||
format: tar.gz | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
||
checksum: | ||
name_template: "{{ .ProjectName }}-checksums.txt" | ||
|
||
sign: | ||
artifacts: checksum |
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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,38 @@ | ||
# Gopkg.toml example | ||
# | ||
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md | ||
# for detailed Gopkg.toml documentation. | ||
# | ||
# required = ["github.com/user/thing/cmd/thing"] | ||
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] | ||
# | ||
# [[constraint]] | ||
# name = "github.com/user/project" | ||
# version = "1.0.0" | ||
# | ||
# [[constraint]] | ||
# name = "github.com/user/project2" | ||
# branch = "dev" | ||
# source = "github.com/myfork/project2" | ||
# | ||
# [[override]] | ||
# name = "github.com/x/y" | ||
# version = "2.4.0" | ||
# | ||
# [prune] | ||
# non-go = false | ||
# go-tests = true | ||
# unused-packages = true | ||
|
||
|
||
[[constraint]] | ||
branch = "master" | ||
name = "github.com/streadway/quantile" | ||
|
||
[[constraint]] | ||
branch = "master" | ||
name = "golang.org/x/net" | ||
|
||
[prune] | ||
go-tests = true | ||
unused-packages = true |
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,22 @@ | ||
COMMIT=$(shell git rev-parse HEAD) | ||
VERSION=$(shell git describe --tags --exact-match --always) | ||
DATE=$(shell date +'%FT%TZ%z') | ||
|
||
vegeta: vendor | ||
CGO_ENABLED=0 go build -v -a -tags=netgo \ | ||
-ldflags '-s -w -extldflags "-static" -X main.Version=$(VERSION) -X main.Commit=$(COMMIT) -X main.Date=$(DATE)' | ||
|
||
clean-vegeta: | ||
rm vegeta | ||
|
||
vendor: | ||
dep ensure -v | ||
|
||
clean-vendor: | ||
rm -rf vendor | ||
|
||
dist: | ||
goreleaser release | ||
|
||
clean-dist: | ||
rm -rf dist |
Oops, something went wrong.