pwmckenna / node-travis-ci

node library to access the Travis-CI API
https://npmjs.org/package/travis-ci
76 stars 17 forks source link

Add "test" script + instructions #15

Open ljharb opened 8 years ago

ljharb commented 8 years ago

I figured out that mocha will run the tests, but 5 of them fail with "Error: Forbidden". Do I have to set up environment variables for the tests to pass?

It looks like GITHUB_OAUTH_TOKEN, GITHUB_USERNAME, and GITHUB_PASSWORD are what the tests expect, but that should probably be documented (and there should probably be explicit tests that fail when these env vars are not defined.

ljharb commented 8 years ago

Also, my github account uses 2FA - does that mean it can't work with this lib?

JuanCaicedo commented 7 years ago

@ljharb for what it's worth, I think if you have a github oauth token you don't need to provide them with 2FA. I'm working with this problem now as well 🙂