Skip to content

Commit

Permalink
Merge 87361ff into 28dba5e
Browse files Browse the repository at this point in the history
  • Loading branch information
pocke committed Jul 31, 2016
2 parents 28dba5e + 87361ff commit c7eeeb4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: go

sudo: false

go:
- 1.6
- tip

# https://github.com/mattn/goveralls#github-integration
before_install:
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover

script:
- $HOME/gopath/bin/goveralls -service=travis-ci
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ get

A wrapper of ghq and go.

[![Build Status](https://travis-ci.org/pocke/get.svg?branch=master)](https://travis-ci.org/pocke/get)
[![Coverage Status](https://coveralls.io/repos/github/pocke/get/badge.svg?branch=master)](https://coveralls.io/github/pocke/get?branch=master)


Installation
-----------
Expand Down
12 changes: 6 additions & 6 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ func TestParseCmdArg_Simple(t *testing.T) {
if c.Name != "get" {
t.Errorf("Name should be `get`, but got %s", c.Name)
}
if !reflect.DeepEqual(c.Options, []string{}) {
t.Errorf("Options should be empty, but got %v", c.Options)
if c.Debug {
t.Errorf("Options should be empty, but got %v", c.Debug)
}
if c.Type != "go" {
t.Errorf("Type should be `go`, but got %s", c.Type)
Expand All @@ -36,8 +36,8 @@ func TestParseCmdArg_DebugOption(t *testing.T) {
if c.Name != "get" {
t.Errorf("Name should be `get`, but got %s", c.Name)
}
if !reflect.DeepEqual(c.Options, []string{"--debug"}) {
t.Errorf("Options should have an option, but got %v", c.Options)
if !c.Debug {
t.Errorf("Options should be empty, but got %v", c.Debug)
}
if c.Type != "go" {
t.Errorf("Type should be `go`, but got %s", c.Type)
Expand All @@ -57,8 +57,8 @@ func TestParseCmdArg_UpdateOption(t *testing.T) {
if c.Name != "get" {
t.Errorf("Name should be `get`, but got %s", c.Name)
}
if !reflect.DeepEqual(c.Options, []string{"--debug"}) {
t.Errorf("Options should have an option, but got %v", c.Options)
if !c.Debug {
t.Errorf("Options should be empty, but got %v", c.Debug)
}
if c.Type != "go" {
t.Errorf("Type should be `go`, but got %s", c.Type)
Expand Down

0 comments on commit c7eeeb4

Please sign in to comment.