monarch-initiative / phenogrid

The phenogrid widget
13 stars 14 forks source link

Integrate phenogrid build on Travis CI #163

Closed yuanzhou closed 9 years ago

yuanzhou commented 9 years ago

Use Travis CI to build phenogrid and run the tests.

yuanzhou commented 9 years ago

Interesting findings:

  1. All behave tests passed without any problem on my VM using the real Firefox browser, also tested with PhantomJS headless browser.
  2. Some tests always failed when tested against Xvfb (X virtual framebuffer is a display server implementing the X11 display server protocol) on Travis CI.
  3. Finally got this work using PhantomJS on Travis CI. But I had to change one of the behave tests because phantomjs didn't capture the loading spinner.
yuanzhou commented 9 years ago

Things noticed:

  1. Travis will try to build for each branch in the same repo unless you tell Travis to look for branches that have .travis.yml.
  2. Travis will also check for each Pull Request.
  3. Behave tests passed on local testing may fail on Travis.