1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00
This commit is contained in:
Carlos Alexandro Becker 2016-12-30 12:03:43 -02:00
parent bf73e57c06
commit 9a67478c0d
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
5 changed files with 14 additions and 14 deletions

View File

@ -1,8 +1,8 @@
package config
import (
"testing"
"github.com/stretchr/testify/assert"
"testing"
)
func TestFixConfig(t *testing.T) {

View File

@ -1,8 +1,8 @@
package git
import (
"testing"
"github.com/stretchr/testify/assert"
"testing"
)
func TestCurrentTag(t *testing.T) {

View File

@ -30,9 +30,9 @@ func (Pipe) Work(config config.ProjectConfig) error {
owner, repo := split.OnSlash(config.Repo)
r, _, err := client.Repositories.CreateRelease(owner, repo, &github.RepositoryRelease{
Name: github.String(config.Git.CurrentTag),
TagName: github.String(config.Git.CurrentTag),
Body: github.String(description(config.Git.Diff)),
Name: github.String(config.Git.CurrentTag),
TagName: github.String(config.Git.CurrentTag),
Body: github.String(description(config.Git.Diff)),
})
if err != nil {
return err

View File

@ -1,9 +1,9 @@
package release
import (
"testing"
"github.com/stretchr/testify/assert"
"fmt"
"github.com/stretchr/testify/assert"
"testing"
)
func TestDescription(t *testing.T) {

View File

@ -1,13 +1,13 @@
package uname
var mapping = map[string]string{
"darwin": "Darwin",
"linux": "Linux",
"freebsd":"FreeBSD",
"openbsd":"OpenBSD",
"netbsd": "NetBSD",
"386": "i386",
"amd64": "x86_64",
"darwin": "Darwin",
"linux": "Linux",
"freebsd": "FreeBSD",
"openbsd": "OpenBSD",
"netbsd": "NetBSD",
"386": "i386",
"amd64": "x86_64",
}
func FromGo(s string) string {