Migrate to GitLab

This commit is contained in:
Trevor Slocum 2020-01-22 16:36:50 -08:00
parent 04e64762ce
commit f64297e08f
6 changed files with 18 additions and 63 deletions

View File

@ -1,27 +0,0 @@
arch: amd64
environment:
PROJECT_DIR: '~/go/src/git.sr.ht/~tslocum'
PROJECT_NAME: 'stick'
CGO_ENABLED: '0'
GO111MODULE: 'on'
image: freebsd/latest
packages:
- go
sources:
- https://git.sr.ht/~tslocum/stick
tasks:
- setup: |
mkdir -p $PROJECT_DIR
mv $PROJECT_NAME $PROJECT_DIR/$PROJECT_NAME
- deps: |
cd $PROJECT_DIR/$PROJECT_NAME
go mod download
- test: |
cd $PROJECT_DIR/$PROJECT_NAME
go test
- build: |
cd $PROJECT_DIR/$PROJECT_NAME
go build
- run: |
cd $PROJECT_DIR/$PROJECT_NAME
./$PROJECT_NAME

View File

@ -1,27 +0,0 @@
arch: x86_64
environment:
PROJECT_DIR: '~/go/src/git.sr.ht/~tslocum'
PROJECT_NAME: 'stick'
CGO_ENABLED: '0'
GO111MODULE: 'on'
image: alpine/edge
packages:
- go
sources:
- https://git.sr.ht/~tslocum/stick
tasks:
- setup: |
mkdir -p $PROJECT_DIR
mv $PROJECT_NAME $PROJECT_DIR/$PROJECT_NAME
- deps: |
cd $PROJECT_DIR/$PROJECT_NAME
go mod download
- test: |
cd $PROJECT_DIR/$PROJECT_NAME
go test
- build: |
cd $PROJECT_DIR/$PROJECT_NAME
go build
- run: |
cd $PROJECT_DIR/$PROJECT_NAME
./$PROJECT_NAME

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,6 +1,6 @@
# stick
[![GoDoc](https://godoc.org/git.sr.ht/~tslocum/stick?status.svg)](https://godoc.org/git.sr.ht/~tslocum/stick)
[![builds.sr.ht status](https://builds.sr.ht/~tslocum/stick.svg)](https://builds.sr.ht/~tslocum/stick?)
[![GoDoc](https://godoc.org/gitlab.com/tslocum/stick?status.svg)](https://godoc.org/gitlab.com/tslocum/stick)
[![CI status](https://gitlab.com/tslocum/stick/badges/master/pipeline.svg)](https://gitlab.com/tslocum/stick/commits/master)
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
Shareable Git-backed Markdown-formatted notes
@ -23,19 +23,19 @@ Choose one of the following methods:
### Download
[**Download stick**](https://stick.rocketnine.space/download/)
[**Download stick**](https://stick.rocketnine.space/download/?sort=name&order=desc)
Windows and Linux binaries are available.
### Compile
```
GO111MODULE=on go get -u git.sr.ht/~tslocum/stick
go get gitlab.com/tslocum/stick
```
## Configure
See [CONFIGURATION.md](https://man.sr.ht/~tslocum/stick/CONFIGURATION.md)
See [CONFIGURATION.md](https://gitlab.com/tslocum/stick/blob/master/CONFIGURATION.md)
## Run
@ -45,8 +45,8 @@ stick serve
## Customize
See [OPTIONS.md](https://man.sr.ht/~tslocum/stick/OPTIONS.md)
See [OPTIONS.md](https://gitlab.com/tslocum/stick/blob/master/OPTIONS.md)
## Support
Please share suggestions/issues [here](https://todo.sr.ht/~tslocum/stick).
Please share issues/suggestions [here](https://gitlab.com/tslocum/stick/issues).

2
go.mod
View File

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

View File

@ -30,7 +30,8 @@ archive:
- goos: windows
format: zip
files:
- ./*.md
- CHANGELOG
- LICENSE
- README.md
checksum:
name_template: 'checksums.txt'