Browse Source

Migrate to GitLab

master
Trevor Slocum 3 years ago
parent
commit
3929ae1060
  1. 14
      .builds/amd64_freebsd.yml
  2. 14
      .builds/amd64_linux_alpine.yml
  3. 8
      .gitlab-ci.yml
  4. 12
      README.md
  5. 2
      card.go
  6. 4
      go.mod
  7. 4
      go.sum
  8. 2
      score.go
  9. 2
      score_result.go
  10. 2
      score_test.go

14
.builds/amd64_freebsd.yml

@ -1,14 +0,0 @@
arch: amd64
environment:
PROJECT_NAME: 'joker-cribbage'
CGO_ENABLED: '1'
GO111MODULE: 'on'
image: freebsd/latest
packages:
- go
sources:
- https://git.sr.ht/~tslocum/joker-cribbage
tasks:
- test: |
cd $PROJECT_NAME
go test ./...

14
.builds/amd64_linux_alpine.yml

@ -1,14 +0,0 @@
arch: x86_64
environment:
PROJECT_NAME: 'joker-cribbage'
CGO_ENABLED: '1'
GO111MODULE: 'on'
image: alpine/edge
packages:
- go
sources:
- https://git.sr.ht/~tslocum/joker-cribbage
tasks:
- test: |
cd $PROJECT_NAME
go test ./...

8
.gitlab-ci.yml

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

12
README.md

@ -1,17 +1,17 @@
# joker-cribbage
[![GoDoc](https://godoc.org/git.sr.ht/~tslocum/joker-cribbage?status.svg)](https://godoc.org/git.sr.ht/~tslocum/joker-cribbage)
[![builds.sr.ht status](https://builds.sr.ht/~tslocum/joker-cribbage.svg)](https://builds.sr.ht/~tslocum/joker-cribbage)
[![GoDoc](https://godoc.org/gitlab.com/tslocum/joker-cribbage?status.svg)](https://godoc.org/gitlab.com/tslocum/joker-cribbage)
[![CI status](https://gitlab.com/tslocum/joker-cribbage/badges/master/pipeline.svg)](https://gitlab.com/tslocum/joker-cribbage/commits/master)
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
Cribbage scoring library based on [joker](https://git.sr.ht/~tslocum/joker)
Cribbage scoring library based on [joker](https://gitlab.com/tslocum/joker)
## Documentation
Documentation is available via [godoc](https://godoc.org):
- [joker](https://godoc.org/git.sr.ht/~tslocum/joker)
- [joker-cribbage](https://godoc.org/git.sr.ht/~tslocum/joker-cribbage)
- [joker](https://godoc.org/gitlab.com/tslocum/joker)
- [joker-cribbage](https://godoc.org/gitlab.com/tslocum/joker-cribbage)
## Support
Please share issues/suggestions [here](https://todo.sr.ht/~tslocum/joker).
Please share issues/suggestions [here](https:/gitlab.com/tslocum/joker-cribbage/issues).

2
card.go

@ -1,6 +1,6 @@
package cribbage
import . "git.sr.ht/~tslocum/joker"
import . "gitlab.com/tslocum/joker"
// Value returns the cribbage value of a card.
func Value(c Card) int {

4
go.mod

@ -1,5 +1,5 @@
module git.sr.ht/~tslocum/joker-cribbage
module gitlab.com/tslocum/joker-cribbage
go 1.13
require git.sr.ht/~tslocum/joker v0.1.2-0.20200116142638-b0126631fff3
require gitlab.com/tslocum/joker v0.1.2-0.20200123002530-2570d6c23aff

4
go.sum

@ -1,2 +1,2 @@
git.sr.ht/~tslocum/joker v0.1.2-0.20200116142638-b0126631fff3 h1:oAv5q5P8Zhg8KMF8DhI7cVwr3WS3WK2fJo4PG7gGdNI=
git.sr.ht/~tslocum/joker v0.1.2-0.20200116142638-b0126631fff3/go.mod h1:ILjUVYQbVWJOBnDmpzF2vivl/Nhl7of+l/u42g0K598=
gitlab.com/tslocum/joker v0.1.2-0.20200123002530-2570d6c23aff h1:jZ4Odb8GyzfKhltZNA9YOdugMwGhl5YZQvzEBjoU3uM=
gitlab.com/tslocum/joker v0.1.2-0.20200123002530-2570d6c23aff/go.mod h1:bxTQ0FFmBP465r9z76zcm97S4Ld9eCLa3q20TyVM82A=

2
score.go

@ -3,7 +3,7 @@ package cribbage
import (
"sort"
. "git.sr.ht/~tslocum/joker"
. "gitlab.com/tslocum/joker"
)
// ScoringType represents a set of scoring rules.

2
score_result.go

@ -3,7 +3,7 @@ package cribbage
import (
"fmt"
. "git.sr.ht/~tslocum/joker"
. "gitlab.com/tslocum/joker"
)
// ScoreResult is a score from pegging or showing a hand.

2
score_test.go

@ -3,7 +3,7 @@ package cribbage
import (
"testing"
. "git.sr.ht/~tslocum/joker"
. "gitlab.com/tslocum/joker"
)
var (

Loading…
Cancel
Save