codecov / codecov-ruby

Ruby uploader for Codecov
https://codecov.io
MIT License
73 stars 82 forks source link

GitLab CI variable names have changed #25

Closed nfm closed 7 years ago

nfm commented 7 years ago

GitLab renamed some of their CI variables in GitLab Runner v9: https://docs.gitlab.com/ce/ci/variables/README.html#9-0-renaming

As a result, we get the following error at the end of our test suite:

Formatter SimpleCov::Formatter::Codecov failed with NoMethodError: undefined method `split' for nil:NilClass (/builds/usabilityhub/app/vendor/bundle/ruby/2.3.0/gems/codecov-0.1.10/lib/codecov.rb:181:in `format')
reedlaw commented 5 years ago

I'm still facing this issue. gitlab-runner -v output:

Version:      11.3.1
Git revision: 0aa5179e
Git branch:   
GO version:   go1.11
Built:        2018-10-02T17:15:38+0000
OS/Arch:      linux/amd64

Result:

/var/lib/gitlab-runner/.gem/ruby/2.5.0/gems/codecov-0.1.10/lib/codecov.rb:181:in `format': undefined method `split' for nil:NilClass (NoMethodError)
    from /var/lib/gitlab-runner/.gem/ruby/2.5.0/gems/simplecov-0.15.1/lib/simplecov/result.rb:46:in `format!'
    from /var/lib/gitlab-runner/.gem/ruby/2.5.0/gems/simplecov-0.15.1/lib/simplecov/configuration.rb:180:in `block in at_exit'
    from /var/lib/gitlab-runner/.gem/ruby/2.5.0/gems/simplecov-0.15.1/lib/simplecov/defaults.rb:68:in `block in <top (required)>'

Codecov and Simplecov gems are out of date. I'm using community/gitlab-runner on Arch Linux.

reedlaw commented 5 years ago

Never mind, I found out all I needed to do was update my project's gems. I'm new to gitlab and wasn't sure where the installed gems were coming from.