Skip to content

Commit

Permalink
Merge pull request #26 from antonmarin/secret-yaml-23
Browse files Browse the repository at this point in the history
Coverage reporting using coveralls.io and renaming packages
  • Loading branch information
antonmarin committed Sep 22, 2019
2 parents 6e25046 + b0e972a commit d67943d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:
- task --version
before_script:
- cc-test-reporter before-build
- go get github.com/mattn/goveralls
script:
- task test
after_script:
- cc-test-reporter after-build -t gocov --exit-code $TRAVIS_TEST_RESULT --debug
- goveralls -coverprofile=c.out -service=travis-ci -repotoken $COVERALLS_TOKEN
- stage: release
os: osx
before_deploy:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# secret-yaml

[![Maintainability](https://api.codeclimate.com/v1/badges/e047b9311147b1e8b419/maintainability)](https://codeclimate.com/github/antonmarin/secret-yaml/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/e047b9311147b1e8b419/test_coverage)](https://codeclimate.com/github/antonmarin/secret-yaml/test_coverage)
[![Coverage Status](https://coveralls.io/repos/github/antonmarin/secret-yaml/badge.svg?branch=master)](https://coveralls.io/github/antonmarin/secret-yaml?branch=master)
[![Build Status](https://travis-ci.org/antonmarin/secret-yaml.svg?branch=master)](https://travis-ci.org/antonmarin/secret-yaml)
[![GoDoc](https://godoc.org/github.com/antonmarin/secret-yaml?status.svg)](https://godoc.org/github.com/antonmarin/secret-yaml)
[![Go Report Card](https://goreportcard.com/badge/github.com/antonmarin/secret-yaml)](https://goreportcard.com/report/github.com/antonmarin/secret-yaml)
Expand Down
4 changes: 2 additions & 2 deletions cmd/generateSecretKey.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cmd

import (
"fmt"
"github.com/antonmarin/secret-yaml/generateRandom"
"github.com/antonmarin/secret-yaml/random"
"github.com/antonmarin/secret-yaml/useCases/generateSecretKey"

"github.com/spf13/cobra"
Expand All @@ -17,7 +17,7 @@ var generateSecretKeyCmd = &cobra.Command{
encrypt/decrypt and outputs it to stdout.
Store it somewhere!`,
RunE: func(cmd *cobra.Command, args []string) error {
useCase := generateSecretKey.NewGenerateSecretKey(new(generateRandom.CryptoGeneratorService))
useCase := generateSecretKey.NewGenerateSecretKey(new(random.CryptoGeneratorService))
result, err := useCase.Execute()
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion generateRandom/crypto.go → random/crypto.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package generateRandom
package random

import (
"crypto/rand"
Expand Down
2 changes: 1 addition & 1 deletion generateRandom/crypto_test.go → random/crypto_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package generateRandom
package random

import "testing"

Expand Down

0 comments on commit d67943d

Please sign in to comment.