Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNM] travis: add goveralls #345

Closed
wants to merge 4 commits into from
Closed

Conversation

huachaohuang
Copy link
Contributor

@siddontang
Copy link
Contributor

CI failed @huachaohuang

@coveralls
Copy link

coveralls commented Oct 17, 2016

Coverage Status

Changes Unknown when pulling c490e13 on huachaohuang/add-coveralls into * on master*.

@siddontang
Copy link
Contributor

@huachaohuang
Still failed. Seem that it can't work in go 1.6?

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 0c2ab09 on huachaohuang/add-coveralls into * on master*.

@siddontang
Copy link
Contributor

siddontang commented Oct 18, 2016

PTAL @overvenus

Copy link
Member

@overvenus overvenus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, it seems work, but I have a question as below.

@@ -4,6 +4,7 @@ PACKAGES := $$(go list ./...| grep -vE 'vendor')

GOFILTER := grep -vE 'vendor|render.Delims|bindata_assetfs|testutil'
GOCHECKER := $(GOFILTER) | awk '{ print } END { if (NR > 0) { exit 1 } }'
GOVERSION := $(shell go version | awk '{ printf "%5.5s", $$3 }')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GOVERSION should be go1.7, but I got go ve%.

OS: ubuntu 14 LTS
awk: 1.2

neil:~/ $ go version | awk '{ printf "%5.5s", $$3 }'
go ve%   

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you run in console, you should use

go version | awk '{ printf "%5.5s", $3 }'

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, thanks!


script:
- make dev
- make coverage
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can use matrix.

matrix:
  include:
  - go: 1.7
    script:
      - make dev
    after_success:
      - make coverage

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove make coverage and use the command directly here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, can you open another PR to try it out?

@huachaohuang huachaohuang changed the title travis: add goveralls [DNM] travis: add goveralls Oct 18, 2016
@huachaohuang huachaohuang deleted the huachaohuang/add-coveralls branch October 25, 2016 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants