Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
prepare distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsk committed Jan 29, 2021
1 parent 3a0b072 commit 6bd5c45
Show file tree
Hide file tree
Showing 5 changed files with 413 additions and 33 deletions.
40 changes: 20 additions & 20 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
project_name: %template%
project_name: testit

archives:
- id: %template%
- id: testit
files:
- LICENSE
format: tar.gz
Expand All @@ -14,36 +14,36 @@ archives:
linux: Linux

brews:
- name: %template%
caveats: %template%
- name: testit
caveats:
commit_author:
name: Kamil Samigullin
email: [email protected]
description: %template%
description: Extended testing toolset.
folder: Formula
homepage: %template%
homepage: https://github.com/octolab/testit
tap:
owner: %template%
name: %template%
owner: octolab
name: homebrew-tap
install: |
bin.install "%template%"
bin.install "testit"
output = Utils.popen_read("#{bin}/%template% completion bash")
(bash_completion/"%template%").write output
output = Utils.popen_read("#{bin}/testit completion bash")
(bash_completion/"testit").write output
output = Utils.popen_read("#{bin}/%template% completion fish")
(fish_completion/"%template%.fish").write output
output = Utils.popen_read("#{bin}/testit completion fish")
(fish_completion/"testit.fish").write output
output = Utils.popen_read("#{bin}/%template% completion zsh")
(zsh_completion/"_%template%").write output
output = Utils.popen_read("#{bin}/testit completion zsh")
(zsh_completion/"_testit").write output
prefix.install_metafiles
test: |
system "#{bin}/%template% version"
system "#{bin}/testit version"
builds:
- id: %template%
binary: %template%
- id: testit
binary: testit
env:
- CGO_ENABLED=0
flags:
Expand All @@ -62,5 +62,5 @@ checksum: { name_template: checksums.txt }

release:
github:
owner: %template%
name: %template%
owner: octolab
name: testit
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
> # 👨‍🍳 testit
>
> Extended `go test` for better experience.
> Extended testing toolset.
[![Build][build.icon]][build.page]
[![Documentation][docs.icon]][docs.page]
Expand Down Expand Up @@ -33,15 +33,15 @@ A full description of the idea is available [here][design.page].
### Homebrew

```bash
$ brew install :owner/tap/:binary
$ brew install octolab/tap/testit
```

### Binary

```bash
$ curl -sSfL https://raw.githubusercontent.com/:owner/:repository/master/bin/install | sh
$ curl -sSfL https://raw.githubusercontent.com/octolab/testit/master/bin/install | sh
# or
$ wget -qO- https://raw.githubusercontent.com/:owner/:repository/master/bin/install | sh
$ wget -qO- https://raw.githubusercontent.com/octolab/testit/master/bin/install | sh
```

> Don't forget about [security](https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-bash-server-side/).
Expand All @@ -50,19 +50,19 @@ $ wget -qO- https://raw.githubusercontent.com/:owner/:repository/master/bin/ins

```bash
# use standard go tools
$ go get github.com/:owner/:repository@:version
$ go get github.com/octolab/testit@latest
# or use egg tool
$ egg tools add github.com/:owner/:repository@:version
$ egg tools add github.com/octolab/testit@latest
```

> [egg][] is an `extended go get`.
### Shell completions

```bash
$ :binary completion bash|fish|powershell|zsh > /path/to/completions/...
$ testit completion bash|fish|powershell|zsh > /path/to/completions/...
# or
$ source <(:binary completion bash|fish|powershell|zsh)
$ source <(testit completion bash|fish|powershell|zsh)
```

<p align="right">made with ❤️ for everyone</p>
Expand Down
Loading

0 comments on commit 6bd5c45

Please sign in to comment.