Now that we have working docker images and a small number of behat tests, we can add .travis.yml files to all the sub projects for free automated testing on travis.

This is also the easiest way to let users contribute: They visit github, find a file they want to edit, click "Edit" and select" create a fork, new branch, and new pull request.

Travis will automatically kick off a build for all newly submitted pull requests.

The nice part about this is that github repo can just be a mirror, but we can still let people submit PRs there, and manually push them to the canonical upstream (either drupal.org or gitlab).

This patch might not be 100% ready, but that's why it's in a pull request on github.

I have to test out a pull request from a forked repo.

Once this is done we write a modified travis yml for provision and hosting repos, then start writing more in depth tests!

GitHub Pull Request: https://github.com/aegir-project/hostmaster/pull/1
Pull Request Patch: https://patch-diff.githubusercontent.com/raw/aegir-project/hostmaster/pu...

Next Steps

  1. Add to hosting: https://github.com/aegir-project/hosting/pull/1
  2. Add to provision: https://github.com/aegir-project/provision/pull/2
  3. Add example yml files for contrib modules:
  4. Write more tests. Converting the test drush command to Behat will not be very difficult, however writing up behat tests has already exposed bugs, so it won't be a trivial process. See https://github.com/aegir-project/tests/pull/1
  5. Write up a page in the documentation about the new automated testing system. Create a table for test result badges for all repositories.
  6. Write up a page in the documentation about the development environment and how to contribute with Pull Requests.
  7. Promote it with a blog post on our new website!
CommentFileSizeAuthor
#2 27784470-travis-yml.patch8.96 KBJon Pugh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jon Pugh created an issue. See original summary.

Jon Pugh’s picture

FileSize
8.96 KB
Jon Pugh’s picture

Issue summary: View changes
helmo’s picture

Status: Needs review » Fixed

merged

Steven Jones’s picture

Great work!

Jon Pugh’s picture

Title: Add .travis.yml file for automated testing. » Travis CI Integration for automated testing
Issue summary: View changes
Status: Fixed » Active
Related issues: +#1194676: factor out current jenkins tests into a provision-test command
Jon Pugh’s picture

Title: Travis CI Integration for automated testing » [META] Travis CI Integration for automated testing

I've updated the issue to be a META issue for improving testing across the board.

Jon Pugh’s picture

Issue summary: View changes
Jon Pugh’s picture

Issue summary: View changes
helmo’s picture

Issue summary: View changes

I also started a travis-yml branch for provision... https://github.com/aegir-project/provision/pull/2

However it's complaining about having to downgrade docker-engine .. could that be a result of the updated imaged mentioned on https://www.traviscistatus.com/ ?

Jon Pugh’s picture

We had to change the version specified by DOCKER_VERSION. Travis had to change all their builds after the outage last night.

See the new .travis.yml file I have going over at https://github.com/aegir-project/tests/blob/source-path/.travis.yml

Jon Pugh’s picture

Fixed the travis file, merged to provision 7.x-3.x!

Thanks, Helmo.

helmo’s picture

Related issues: +#1080590: Testing [meta]
realityloop’s picture

Status: Active » Fixed

suggest opening new issues as they are required

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.