Closed (fixed)
Project:
Search API (8.x)
Component:
Test
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2014 at 08:24 UTC
Updated:
29 Apr 2014 at 09:30 UTC
Jump to comment: Most recent
Hi all,
I've created a system to test our commits with Travis CI for PHP 5.4 and 5.5.
You can find the link here: https://travis-ci.org/nickveenhof/search-api-sandbox
How it works:
Comments
Comment #1
nick_vhComment #2
nick_vhComment #3
nick_vhAlso, normally we should be able to add the image to the sandbox frontpage but drupal.org does not allow any image from sources that are not drupal.org...
See https://travis-ci.org/nickveenhof/search-api-sandbox.svg for the current status.
This is how it looks like embedded:
Comment #4
drunken monkeyGreat job, thanks! Should be handy, going forward. (Though it of course can't replace running the tests locally before committin …)
I've added myself under notifications, too.
However, does
run-tests.shtest all kinds of tests – web tests, Drupal unit tests and proper unit tests? (If so, good to know. Otherwise, we should probably execute all tests.)Also, should the tests really all pass, currently? I'm getting fails for
SearchApiIntegrationTest(fatal),SearchApiLocalActionsWebTestandSearchApiOverviewPageTestlocally.Comment #5
nick_vhThere are still some issues
run-tests.sh using the built in webserver is always reporting success. I'm trying to prevent this by making sure the status code in the end is 1 (fail) when there is a notice of failure. Watchdog is giving a failure but this is tracked here: https://drupal.org/node/2201819
Travis is running all the tests, unit tests with phpunit, unit tests from the simpletest suite and webtests.
Comment #6
nick_vhAdded a line that should check the output for \[0-9]+ fails\ and return exit code 1 if true. This should at least make it more reliable and show the correctness of the tests.
That said, apache is really needed as the built in server is very shady.
Comment #7
nick_vhLast update on this as I think the build is stable now.
Travis is configured to show every commit in the IRC channel #drupal-search-api. This allows us to monitor changes closely and see when things are broken. At most times we have folks in the IRC channel so I think this serves a good purpose.
I've added the logo to drupalsear.ch and the IRC bot is now here so I think this is good to be closed as fixed.
http://drupalsear.ch/