CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Unit Testing (Moderator: Michał Mach) »
  • travis integration with drupal civicrm
Pages: [1]

Author Topic: travis integration with drupal civicrm  (Read 910 times)

jimyhuang

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 3
travis integration with drupal civicrm
June 02, 2014, 09:18:45 pm
I just use travis to run unit test successfully on drupal with civicrm (but with simpletest).

Bring the .travis.yml to here(attachment) to see if anyone interested in.

This travis.yml modified by https://github.com/sonnym/travis-ci-drupal-module-example

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: travis integration with drupal civicrm
June 10, 2014, 06:02:35 pm
Cool, thanks for sharing. A nice thing about Travis is that it's a free/hosted service. Questions:

1. The travis.yml doesn't seem to show much scripting around the build/installation of Civi (e.g. downloading the Civi source, running GenCode, creating civicrm.settings.php, and populating the DB) -- maybe you've defined that part separately (eg with the "netivism_neticrm_build" profile)?

2. How do test results get out of simpletest and to the developer? (For example, in Jenkins, the test script spits out a JUnit XML file, and Jenkins has a UI for browsing/tracking/comparing test results.)

jimyhuang

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 3
Re: travis integration with drupal civicrm
July 13, 2014, 08:56:13 am
For question 1, I just have time to look at phpunit testing at CiviCRM today. Maybe just simply forgot drupal related code in my origin travis.yml. Can only run "phpunit AllTests" when integrate CiviCRM test with Travis-CI.

For question 2, as I limited experience, I can only find some project using console output for display test result. And never find the interface to tracking test result like Jenkins in Travis-ci. Some project have nice output on test result using travis-ci below:
https://travis-ci.org/composer/composer/jobs/29786345
https://travis-ci.org/visionmedia/express/jobs/29803415


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Unit Testing (Moderator: Michał Mach) »
  • travis integration with drupal civicrm

This forum was archived on 2017-11-26.