Add integration tests to Travis #1328

Closed
ginatrapani opened this Issue Apr 28, 2012 · 5 comments

Projects

None yet

3 participants

@ginatrapani
Owner

Right now only the model, plugin, and controller tests run on Travis CI. We should run the entire suite, which includes integration tests (all the tests that start with WebTestOf.) These tests require a web server which can execute PHP files and have MySQL and all of ThinkUp's dependencies installed to run.

Trevor says "Travis workers are currently VirtualBox VMs so you get a full environment with setup and teardown on each run. Any dependency installations could be included" so it sounds like we could install Apache w/ all of ThinkUp's dependencies to make this happen.

Related mailing list thread:
https://groups.google.com/a/expertlabs.org/group/thinkup-dev/browse_thread/thread/7249ca5754d682e9/5d8195797b2fc752#5d8195797b2fc752

cordoval commented Jul 4, 2012

I want to do the same but for a regular php project, do you know how to? any news?

Owner

Here's a .travis.yml file that will install Apache to work with PHP/MySQL:

http://vanderveer.be/blog/2012/07/16/installing-a-working-apache-with-php-in-a-travis-ci-testing-session/

Owner

Thoroughly enjoying that commit log. So close!

@cdmoyer cdmoyer added a commit to cdmoyer/ThinkUp that referenced this issue Feb 27, 2014
@cdmoyer cdmoyer Add support for running all tests on travis.
Move travis before_script to a script in extras.
Add apache and mysql confs to extras.
Modify test harnesses to be travis aware.
  (Make sure and send some output, sleep occasionally)
Switch migration urls to non-redirecting www.
Occasionally output while in Travis mode to prevent travis stopping.
Added a mode to just test install to allow the build matrix to only test
   the install in one build, not all.

references #1328
b947405
Contributor
cdmoyer commented Feb 27, 2014

So, I have it configured right now to run all the non WebTestOfUpgradeDatabase tests on 5.5-5.2. And then run all the tests on 5.4. (since that's not really old, but not brand new and those tests take a lot of time.)

@ginatrapani ginatrapani added a commit that referenced this issue Feb 28, 2014
@cdmoyer @ginatrapani cdmoyer + ginatrapani Add support for running all tests on travis.
Move travis before_script to a script in extras.
Add apache and mysql confs to extras.
Modify test harnesses to be travis aware.
  (Make sure and send some output, sleep occasionally)
Switch migration urls to non-redirecting www.
Occasionally output while in Travis mode to prevent travis stopping.
Added a mode to just test install to allow the build matrix to only test
   the install in one build, not all.

references #1328
5e5649b
@ginatrapani ginatrapani added a commit that closed this issue Feb 28, 2014
@cdmoyer @ginatrapani cdmoyer + ginatrapani Add support for running all tests (including integration tests) on Tr…
…avis

Move travis before_script to a script in extras.
Add apache and mysql confs to extras.
Modify test harnesses to be travis aware.
  (Make sure and send some output, sleep occasionally)
Switch migration urls to non-redirecting www.
Occasionally output while in Travis mode to prevent travis stopping.
Added a mode to just test install to allow the build matrix to only test
   the install in one build, not all.

Closes #1328, closes #1824
cc0be34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment