Migrate to GitLab
This commit is contained in:
parent
5b2c8cdfdc
commit
3511f8b01a
|
@ -1,21 +0,0 @@
|
|||
arch: amd64
|
||||
environment:
|
||||
PROJECT_DIR: '~/go/src/git.sr.ht/~tslocum'
|
||||
PROJECT_NAME: 'sponge'
|
||||
CGO_ENABLED: '0'
|
||||
GO111MODULE: 'on'
|
||||
image: freebsd/latest
|
||||
packages:
|
||||
- go
|
||||
sources:
|
||||
- https://git.sr.ht/~tslocum/sponge
|
||||
tasks:
|
||||
- setup: |
|
||||
mkdir -p $PROJECT_DIR
|
||||
mv $PROJECT_NAME $PROJECT_DIR/$PROJECT_NAME
|
||||
- test: |
|
||||
cd $PROJECT_DIR/$PROJECT_NAME
|
||||
go test
|
||||
- build: |
|
||||
cd $PROJECT_DIR/$PROJECT_NAME
|
||||
go build
|
|
@ -1,21 +0,0 @@
|
|||
arch: x86_64
|
||||
environment:
|
||||
PROJECT_DIR: '~/go/src/git.sr.ht/~tslocum'
|
||||
PROJECT_NAME: 'sponge'
|
||||
CGO_ENABLED: '0'
|
||||
GO111MODULE: 'on'
|
||||
image: alpine/edge
|
||||
packages:
|
||||
- go
|
||||
sources:
|
||||
- https://git.sr.ht/~tslocum/sponge
|
||||
tasks:
|
||||
- setup: |
|
||||
mkdir -p $PROJECT_DIR
|
||||
mv $PROJECT_NAME $PROJECT_DIR/$PROJECT_NAME
|
||||
- test: |
|
||||
cd $PROJECT_DIR/$PROJECT_NAME
|
||||
go test
|
||||
- build: |
|
||||
cd $PROJECT_DIR/$PROJECT_NAME
|
||||
go build
|
|
@ -0,0 +1,8 @@
|
|||
stages:
|
||||
- test
|
||||
|
||||
test:
|
||||
image: golang:latest
|
||||
stage: test
|
||||
script:
|
||||
- go test -v ./...
|
|
@ -1,5 +1,6 @@
|
|||
# sponge
|
||||
[![builds.sr.ht status](https://builds.sr.ht/~tslocum/sponge.svg)](https://builds.sr.ht/~tslocum/sponge)
|
||||
[![GoDoc](https://godoc.org/gitlab.com/tslocum/sponge?status.svg)](https://godoc.org/gitlab.com/tslocum/sponge)
|
||||
[![CI status](https://gitlab.com/tslocum/sponge/badges/master/pipeline.svg)](https://gitlab.com/tslocum/sponge/commits/master)
|
||||
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
|
||||
|
||||
Soaks up all input from stdin and writes it to a file or stdout. Pipelines
|
||||
|
@ -12,7 +13,7 @@ grep [...] log.txt | sponge log.txt
|
|||
## Installation
|
||||
|
||||
```
|
||||
go get git.sr.ht/~tslocum/sponge
|
||||
go get gitlab.com/tslocum/sponge
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
@ -23,7 +24,7 @@ sponge [-a] [file]: soak up all input from stdin and write it to [file] or stdou
|
|||
|
||||
## Support
|
||||
|
||||
Please share issues and suggestions [here](https://todo.sr.ht/~tslocum/sponge).
|
||||
Please share issues and suggestions [here](https://gitlab.com/tslocum/sponge).
|
||||
|
||||
## Credits
|
||||
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,3 +1,3 @@
|
|||
module git.sr.ht/~tslocum/sponge
|
||||
module gitlab.com/tslocum/sponge
|
||||
|
||||
go 1.12
|
||||
|
|
Loading…
Reference in New Issue