Migrate to GitLab

This commit is contained in:
Trevor Slocum 2020-01-22 17:09:52 -08:00
parent 76c118030c
commit a83eaef916
16 changed files with 38 additions and 82 deletions

View File

@ -1,26 +0,0 @@
arch: amd64
environment:
PROJECT_DIR: '~/go/src/git.sr.ht/~tslocum'
PROJECT_NAME: 'gmenu'
GO111MODULE: 'on'
image: freebsd/latest
packages:
- pkgconf
- go
- gtk3
- glib
sources:
- https://git.sr.ht/~tslocum/gmenu
tasks:
- setup: |
mkdir -p $PROJECT_DIR
mv $PROJECT_NAME $PROJECT_DIR/$PROJECT_NAME
- test: |
cd $PROJECT_DIR/$PROJECT_NAME
go test -v -cover ./...
- build-gmenu: |
cd $PROJECT_DIR/$PROJECT_NAME/cmd/gmenu
go build
- build-gtkmenu: |
cd $PROJECT_DIR/$PROJECT_NAME/cmd/gtkmenu
go build

View File

@ -1,26 +0,0 @@
arch: x86_64
environment:
PROJECT_DIR: '~/go/src/git.sr.ht/~tslocum'
PROJECT_NAME: 'gmenu'
GO111MODULE: 'on'
image: alpine/edge
packages:
- go
- glib
- glib-dev
- gtk+3.0-dev
sources:
- https://git.sr.ht/~tslocum/gmenu
tasks:
- setup: |
mkdir -p $PROJECT_DIR
mv $PROJECT_NAME $PROJECT_DIR/$PROJECT_NAME
- test: |
cd $PROJECT_DIR/$PROJECT_NAME
go test -v -cover ./...
- build-gmenu: |
cd $PROJECT_DIR/$PROJECT_NAME/cmd/gmenu
go build
- build-gtkmenu: |
cd $PROJECT_DIR/$PROJECT_NAME/cmd/gtkmenu
go build

9
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,9 @@
stages:
- test
test:
image: golang:latest
stage: test
script:
- apt-get update && apt-get install -y libgtk-3-dev
- go test -v ./...

View File

@ -1,5 +1,5 @@
gmenu - Desktop application launcher
https://git.sr.ht/~tslocum/gmenu
https://gitlab.com/tslocum/gmenu
The MIT License (MIT)

View File

@ -1,6 +1,6 @@
# gmenu
[![GoDoc](https://godoc.org/git.sr.ht/~tslocum/gmenu?status.svg)](https://godoc.org/git.sr.ht/~tslocum/gmenu)
[![builds.sr.ht status](https://builds.sr.ht/~tslocum/gmenu.svg)](https://builds.sr.ht/~tslocum/gmenu)
[![GoDoc](https://godoc.org/gitlab.com/tslocum/gmenu?status.svg)](https://godoc.org/gitlab.com/tslocum/gmenu)
[![CI status](https://gitlab.com/tslocum/gmenu/badges/master/pipeline.svg)](https://gitlab.com/tslocum/gmenu/commits/master)
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
Desktop application launcher
@ -30,13 +30,13 @@ Note: Linux is currently the only supported OS.
### Console
```
GO111MODULE=on go get git.sr.ht/~tslocum/gmenu/cmd/gmenu
go get gitlab.com/tslocum/gmenu/cmd/gmenu
```
### GUI
```
GO111MODULE=on go get git.sr.ht/~tslocum/gmenu/cmd/gtkmenu
go get gitlab.com/tslocum/gmenu/cmd/gtkmenu
```
## Usage
@ -49,7 +49,7 @@ The input buffer may be executed as a shell command by selecting the last entry
## Support
Please share suggestions/issues [here](https://todo.sr.ht/~tslocum/gmenu).
Please share issues/suggestions [here](https://gitlab.com/tslocum/gmenu/issues).
## Integration Example - [sway](https://swaywm.org)/[i3](https://i3wm.org) + [alacritty](https://github.com/jwilm/alacritty)

View File

@ -3,8 +3,8 @@ package main
import (
"strings"
"git.sr.ht/~tslocum/cview"
"git.sr.ht/~tslocum/gmenu/pkg/gmenu"
"gitlab.com/tslocum/cview"
"gitlab.com/tslocum/gmenu/pkg/gmenu"
"github.com/gdamore/tcell"
)

View File

@ -5,8 +5,8 @@ import (
"fmt"
"strings"
"git.sr.ht/~tslocum/desktop"
"git.sr.ht/~tslocum/gmenu/pkg/gmenu"
"gitlab.com/tslocum/desktop"
"gitlab.com/tslocum/gmenu/pkg/gmenu"
"github.com/kballard/go-shellquote"
)

View File

@ -6,7 +6,7 @@ import (
"log"
"os"
"git.sr.ht/~tslocum/gmenu/pkg/gmenu"
"gitlab.com/tslocum/gmenu/pkg/gmenu"
"github.com/mattn/go-isatty"
)

View File

@ -7,8 +7,8 @@ import (
"os"
"path"
"git.sr.ht/~tslocum/desktop"
"git.sr.ht/~tslocum/gmenu/pkg/gmenu"
"gitlab.com/tslocum/desktop"
"gitlab.com/tslocum/gmenu/pkg/gmenu"
"github.com/gotk3/gotk3/gdk"
"github.com/gotk3/gotk3/gtk"
)

View File

@ -10,8 +10,8 @@ import (
"strings"
"sync"
"git.sr.ht/~tslocum/desktop"
"git.sr.ht/~tslocum/gmenu/pkg/gmenu"
"gitlab.com/tslocum/desktop"
"gitlab.com/tslocum/gmenu/pkg/gmenu"
"github.com/gotk3/gotk3/glib"
"github.com/gotk3/gotk3/gtk"
"github.com/gotk3/gotk3/pango"

View File

@ -9,7 +9,7 @@ import (
"runtime/pprof"
"time"
"git.sr.ht/~tslocum/gmenu/pkg/gmenu"
"gitlab.com/tslocum/gmenu/pkg/gmenu"
"github.com/gotk3/gotk3/glib"
"github.com/gotk3/gotk3/gtk"
)

9
go.mod
View File

@ -1,17 +1,14 @@
module git.sr.ht/~tslocum/gmenu
module gitlab.com/tslocum/gmenu
go 1.12
require (
git.sr.ht/~tslocum/cview v0.2.2-0.20200104225858-a8fe476d7783
git.sr.ht/~tslocum/desktop v0.1.3
github.com/gdamore/tcell v1.3.0
github.com/gotk3/gotk3 v0.0.0-20200103101635-d3629b451bb5
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
github.com/lithammer/fuzzysearch v1.1.0
github.com/lucasb-eyer/go-colorful v1.0.3 // indirect
github.com/mattn/go-isatty v0.0.11
github.com/mattn/go-runewidth v0.0.7 // indirect
github.com/pkg/errors v0.8.1
golang.org/x/sys v0.0.0-20200103143344-a1369afcdac7 // indirect
gitlab.com/tslocum/cview v1.4.1-0.20200122232819-5f880bc2c7e6
gitlab.com/tslocum/desktop v0.1.4-0.20200123010527-46712e512c7d
)

10
go.sum
View File

@ -1,7 +1,3 @@
git.sr.ht/~tslocum/cview v0.2.2-0.20200104225858-a8fe476d7783 h1:uUVs+/jxtnr0e5NioF4ITitLegVKdk0BcXgnDqXuzks=
git.sr.ht/~tslocum/cview v0.2.2-0.20200104225858-a8fe476d7783/go.mod h1:92oD1V0TlLtAeJUruA+p5/P6sVL0p8TMMosPwqz0/gM=
git.sr.ht/~tslocum/desktop v0.1.3 h1:0yIUIhAaP8oEaHpKbJ+1L9xGfLaga//fPEimIubFecY=
git.sr.ht/~tslocum/desktop v0.1.3/go.mod h1:cUn0Q8ALjkAq40qSei795yN3CfO5pkeYKo2gmzaZ2SI=
github.com/DATA-DOG/go-sqlmock v1.3.3 h1:CWUqKXe0s8A2z6qCgkP4Kru7wC11YoAnoupUKFDnH08=
github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdko=
@ -28,6 +24,12 @@ github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/rivo/uniseg v0.1.0 h1:+2KBaVoUmb9XzDsrx/Ct0W/EYOSFf/nWTauy++DprtY=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
gitlab.com/tslocum/cview v1.4.1-0.20200122232819-5f880bc2c7e6 h1:C0UWplFR3t8+7Wj3M194fMIESyiN2jQBaukstRwRETk=
gitlab.com/tslocum/cview v1.4.1-0.20200122232819-5f880bc2c7e6/go.mod h1:QbxliYQa2I32UJH2boP54jq6tnWlgm6yViaFXKGDfuM=
gitlab.com/tslocum/desktop v0.1.3 h1:0yIUIhAaP8oEaHpKbJ+1L9xGfLaga//fPEimIubFecY=
gitlab.com/tslocum/desktop v0.1.3/go.mod h1:cUn0Q8ALjkAq40qSei795yN3CfO5pkeYKo2gmzaZ2SI=
gitlab.com/tslocum/desktop v0.1.4-0.20200123010527-46712e512c7d h1:JlNn0QBnwVK3sZjqf9z+6JkTIN1UWU6lWQqAm1SadvI=
gitlab.com/tslocum/desktop v0.1.4-0.20200123010527-46712e512c7d/go.mod h1:ujaXLjKXzooMcFT/+pUYFVIFBmBDehD+yBz6AUIuDGw=
golang.org/x/sys v0.0.0-20190626150813-e07cf5db2756/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191018095205-727590c5006e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=

View File

@ -11,7 +11,7 @@ builds:
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X git.sr.ht/~tslocum/gmenu/pkg/gmenu.Version={{.Version}}
- -s -w -X gitlab.com/tslocum/gmenu/pkg/gmenu.Version={{.Version}}
goos:
- darwin
- freebsd
@ -25,7 +25,7 @@ builds:
binary: gtkmenu
main: ./cmd/gtkmenu
ldflags:
- -s -w -X git.sr.ht/~tslocum/gmenu/pkg/gmenu.Version={{.Version}}
- -s -w -X gitlab.com/tslocum/gmenu/pkg/gmenu.Version={{.Version}}
goos:
- linux
# - windows

View File

@ -29,7 +29,7 @@ func (c *Config) BrowserCommand() string {
}
const VersionInfo = `%s - Desktop application launcher - v%s
https://git.sr.ht/~tslocum/gmenu
https://gitlab.com/tslocum/gmenu
The MIT License (MIT)
Copyright (c) 2019 Trevor Slocum <trevor@rocketnine.space>
`

View File

@ -7,7 +7,7 @@ import (
"sort"
"strings"
"git.sr.ht/~tslocum/desktop"
"gitlab.com/tslocum/desktop"
"github.com/lithammer/fuzzysearch/fuzzy"
"github.com/pkg/errors"
)