Migrate to GitLab

This commit is contained in:
Trevor Slocum 2020-01-23 07:37:37 -08:00
parent 5b2c8cdfdc
commit 3511f8b01a
6 changed files with 14 additions and 47 deletions

View File

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

View File

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

8
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,8 @@
stages:
- test
test:
image: golang:latest
stage: test
script:
- go test -v ./...

View File

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

@ -1,3 +1,3 @@
module git.sr.ht/~tslocum/sponge
module gitlab.com/tslocum/sponge
go 1.12

View File

@ -1,5 +1,5 @@
// sponge - Soaks up all input from stdin and writes it to a file or stdout
// https://git.sr.ht/~tslocum/sponge
// https://gitlab.com/tslocum/sponge
//
// Originally written in C by Tollef Fog Heen
// https://joeyh.name/code/moreutils