Browse Source

Update CI script

master
Trevor Slocum 2 years ago
parent
commit
141c7d0f6d
  1. 21
      .gitlab-ci.yml
  2. 14
      README.md

21
.gitlab-ci.yml

@ -1,8 +1,21 @@ @@ -1,8 +1,21 @@
image: golang:latest
stages:
- test
- validate
- build
fmt:
stage: validate
script:
- gofmt -l -s -e .
- exit $(gofmt -l -s -e . | wc -l)
vet:
stage: validate
script:
- go vet -composites=false ./...
test:
image: golang:latest
stage: test
stage: validate
script:
- go test -v ./...
- go test -race -v ./...

14
README.md

@ -6,25 +6,19 @@ @@ -6,25 +6,19 @@
Soaks up all input from stdin and writes it to a file or stdout. Pipelines
reading from and writing to the same file may be safely constructed.
```
grep [...] log.txt | sponge log.txt
```
```grep [...] log.txt | sponge log.txt```
## Installation
```
go get gitlab.com/tslocum/sponge
```
```go get gitlab.com/tslocum/sponge```
## Usage
```
sponge [-a] [file]: soak up all input from stdin and write it to [file] or stdout
```
```sponge [-a] [file]: soak up all input from stdin and write it to [file] or stdout```
## Support
Please share issues and suggestions [here](https://gitlab.com/tslocum/sponge).
Please share issues and suggestions [here](https://gitlab.com/tslocum/sponge/issues).
## Credits

Loading…
Cancel
Save