Browse Source

Migrate to GitLab

master
Trevor Slocum 3 years ago
parent
commit
3511f8b01a
  1. 21
      .builds/amd64_freebsd.yml
  2. 21
      .builds/amd64_linux_alpine.yml
  3. 8
      .gitlab-ci.yml
  4. 7
      README.md
  5. 2
      go.mod
  6. 2
      main.go

21
.builds/amd64_freebsd.yml

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

21
.builds/amd64_linux_alpine.yml

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

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

7
README.md

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

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

2
main.go

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

Loading…
Cancel
Save