Skip to content

Instantly share code, notes, and snippets.

@lekansogunle
Last active May 2, 2016 06:28
Show Gist options
  • Save lekansogunle/a7e70c570a7a59422aea71c24f938aee to your computer and use it in GitHub Desktop.
Save lekansogunle/a7e70c570a7a59422aea71c24f938aee to your computer and use it in GitHub Desktop.
Writing Sample Answers

1.Email issues.

Thanks for reaching out about your concerns. I will be pointing you to a section of the Travis CI documentation, specifically https://docs.travis-ci.com/user/notifications#Email-notifications. There you can follow instructions on setting the exact email you want to receive email notifications. Since you already have your secondary email address registered on github you only need to assign this secondary email to your git config to receive notifications there.

git config user.email "mynewemail@example.com”

Or set the email for all of your git repositories:

git config --global user.email "mynewemail@example.com”

The next time you make a push and a build is run you should have the build notification go into your specified secondary email.

2.Everyone's favorite PhantomJS.

Thanks for reaching out with this question. I will be quoting certain parts of the log to explain what is happening and suggest next steps of action you should take.

a)

PhantomJS detected, but wrong version 1.9.8 @ /usr/local/phantomjs/bin/phantomjs.

Downloading https://github.com/bprodoehl/phantomjs/releases/download/2.0.0-20141016/phantomjs-2.0.0-20141016-linux-x86_64.zip

Saving to /tmp/phantomjs/phantomjs-2.0.0-20141016-linux-x86_64.zip

Receiving...

Install exited unexpectedly

The build is trying to download the PhantomJS zip package from https://github.com/bprodoehl/phantomjs/releases/download/2.0.0-20141016/phantomjs-2.0.0-20141016-linux-x86_64.zip. If you paste this in your browser and try downloading you will get an error instead of the package. This means that the link from the PhantomJS2@2.0.0 module is broken. After checking PhantomJS2 code base, it was found that this is a bug with the phantomjs2 version 2.0.0 module installing on a linux machine.

I will advise you change the particular version of PhantomJS2 you currently have in your package.json to the latest version 2.2.0. This is because going through the open source code base for the module, this version 2.2.0 is meant to download the source from https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 which is available and not broken. In your package.json make sure you have

"phantomjs2": "~2.2.0”

Then try run the build process again. Let me know how this turns out.

b) I will also be raising an issue on the PhantomJS2 github repo about this bug. Possibly someone gets to fix it.

Feel free to reach out to me about how this fix works for you or concerning any other thing.

3, 4.Stackoverflow answers

I have the following links to the stackoverflow questions I have answered.

First Question and Second Question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment