Migrate to GitLab

This commit is contained in:
Trevor Slocum 2020-01-22 17:40:22 -08:00
parent 32c12d6250
commit 3b84b23ebd
10 changed files with 20 additions and 46 deletions

View File

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

View File

@ -1,17 +0,0 @@
arch: x86_64
environment:
PROJECT_NAME: 'harmony'
CGO_ENABLED: '1'
GO111MODULE: 'on'
image: alpine/edge
packages:
- go
sources:
- https://git.sr.ht/~tslocum/harmony
tasks:
- test: |
cd $PROJECT_NAME
go test ./...
- build-server: |
cd $PROJECT_NAME/cmd/harmony-server
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

@ -47,7 +47,7 @@ There are two ways to install harmony-server:
Download and install the [Go compiler](https://golang.org/doc/install), then
install harmony-server with the following command:
```GO111MODULE=on go get git.sr.ht/~tslocum/harmony/...@latest```
```GO111MODULE=on go get gitlab.com/tslocum/harmony/...```
This command will also update the server when ran again.

View File

@ -1,6 +1,6 @@
# harmony
[![GoDoc](https://godoc.org/git.sr.ht/~tslocum/harmony?status.svg)](https://godoc.org/git.sr.ht/~tslocum/harmony)
[![builds.sr.ht status](https://builds.sr.ht/~tslocum/harmony.svg)](https://builds.sr.ht/~tslocum/harmony)
[![GoDoc](https://godoc.org/gitlab.com/tslocum/harmony?status.svg)](https://godoc.org/gitlab.com/tslocum/harmony)
[![CI status](https://gitlab.com/tslocum/harmony/badges/master/pipeline.svg)](https://gitlab.com/tslocum/harmony/commits/master)
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
Voice and text communications platform
@ -26,12 +26,12 @@ hosted by the server.
The server (located in cmd/harmony-server) passes voice and text communications
between clients.
See [HOSTING.md](https://man.sr.ht/~tslocum/harmony/HOSTING.md) for information
See [HOSTING.md](https://gitlab.com/tslocum/harmony/blob/master/HOSTING.md) for information
on hosting a server.
## Support
Please share suggestions/issues [here](https://todo.sr.ht/~tslocum/harmony).
Please share issues/suggestions [here](https://gitlab.com/tslocum/harmony/issues).
## Libraries

View File

@ -9,8 +9,8 @@ import (
"path"
"strings"
"git.sr.ht/~tslocum/harmony/pkg/agent"
"git.sr.ht/~tslocum/harmony/pkg/web"
"gitlab.com/tslocum/harmony/pkg/agent"
"gitlab.com/tslocum/harmony/pkg/web"
)
var (

2
go.mod
View File

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

View File

@ -15,7 +15,7 @@ builds:
flags:
- -tags=embed
ldflags:
- -s -w -X git.sr.ht/~tslocum/harmony/pkg/config.Version={{.Version}}
- -s -w -X gitlab.com/tslocum/harmony/pkg/config.Version={{.Version}}
goos:
# - darwin
# - freebsd

View File

@ -6,9 +6,9 @@ import (
"sync"
"time"
"git.sr.ht/~tslocum/harmony/pkg/audio"
"github.com/gorilla/websocket"
"github.com/pion/webrtc/v2"
"gitlab.com/tslocum/harmony/pkg/audio"
)
type Client struct {

View File

@ -12,14 +12,14 @@ import (
"sync"
"time"
"git.sr.ht/~tslocum/harmony/pkg/agent"
"git.sr.ht/~tslocum/harmony/pkg/audio"
"github.com/gorilla/mux"
"github.com/gorilla/websocket"
"github.com/pion/rtp"
"github.com/pion/webrtc/v2"
"github.com/pkg/errors"
"gitlab.com/golang-commonmark/markdown"
"gitlab.com/tslocum/harmony/pkg/agent"
"gitlab.com/tslocum/harmony/pkg/audio"
)
var peerConnectionConfig = webrtc.Configuration{