Skip to content

Commit

Permalink
Travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalimaha authored and Guido Barbaglia committed Jun 1, 2020
1 parent 20971b1 commit e1fc513
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
@@ -0,0 +1,14 @@
language: go

before_install:
- go get github.com/onsi/gomega
- go get github.com/onsi/ginkgo/ginkgo
- go get github.com/modocache/gover
- - go get github.com/mattn/goveralls

script:
- go test -v ./pkg/toyrobot
- $GOPATH/bin/goveralls -service=travis-ci

notifications:
email: false
3 changes: 3 additions & 0 deletions README.md
@@ -1,3 +1,6 @@
[![Build Status](https://travis-ci.org/Kalimaha/toyrobot-go.svg?branch=master)](https://travis-ci.org/Kalimaha/toyrobot-go)
[![Coverage Status](https://coveralls.io/repos/github/Kalimaha/toyrobot-go/badge.svg?branch=setup-travis)](https://coveralls.io/github/Kalimaha/toyrobot-go?branch=setup-travis)

# Toy Robot

# Test, install and run
Expand Down
2 changes: 1 addition & 1 deletion src/calculator.go → pkg/toyrobot/calculator.go
@@ -1,4 +1,4 @@
package main
package calculator

func Sum(a int, b int) int {
return a + b
Expand Down
2 changes: 1 addition & 1 deletion src/calculator_test.go → pkg/toyrobot/calculator_test.go
@@ -1,4 +1,4 @@
package main
package calculator

import(
. "github.com/onsi/ginkgo"
Expand Down

0 comments on commit e1fc513

Please sign in to comment.