Update CI script

master
Trevor Slocum 3 years ago
parent 3511f8b01a
commit 141c7d0f6d

@ -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 ./...

@ -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