Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

TypeError: Cannot read property 'split' of undefined #6

Closed
lukasoppermann opened this issue Sep 14, 2017 · 4 comments
Closed

TypeError: Cannot read property 'split' of undefined #6

lukasoppermann opened this issue Sep 14, 2017 · 4 comments

Comments

@lukasoppermann
Copy link

Hey when I try to run it I get the following error:

/Users/lukasoppermann/Code/veare/node_modules/lighthouse-ci/runlighthouse.js:100
    owner: repoSlug.split('/')[0],

I just installed it locally using npm, I hope that is fine. Am I doing something wrong or is that a legit bug? Can I somehow provide more info?

@Siilwyn
Copy link

Siilwyn commented Sep 14, 2017

What is the environment variable TRAVIS_PULL_REQUEST_SLUG set to?

@lukasoppermann
Copy link
Author

Ohh, well, I just ran it locally, does this not work? Basically what I want to do is run it on travis but test it locally on travis so start up a node server on travis and test it.

I know it is not advised but I basically just want to get notified if my score gets worse which should be fine with a local version.

@Siilwyn
Copy link

Siilwyn commented Sep 14, 2017

I don't fully understand your reply but if you run it on Travis it should work.

@ebidel
Copy link
Contributor

ebidel commented Sep 14, 2017

Right, the script needs to be run on Travis. Actually it should be telling you that: https://github.com/ebidel/lighthouse-ci/blob/master/runlighthouse.js#L148

If you want to test against a local backend, you can specify the CI_HOST env variable. Point it at your local server.

@ebidel ebidel closed this as completed Sep 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants