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.
- Behat tests and .travis.yml files: https://github.com/aegir-project/tests
- Dockerfiles: https://github.com/aegir-project/dockerfiles and https://hub.docker.com/r/aegir/hostmaster/
- Development environment: https://github.com/aegir-project/development
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
- Add to hosting: https://github.com/aegir-project/hosting/pull/1
- Add to provision: https://github.com/aegir-project/provision/pull/2
- Add example yml files for contrib modules:
- 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
- Write up a page in the documentation about the new automated testing system. Create a table for test result badges for all repositories.
- Write up a page in the documentation about the development environment and how to contribute with Pull Requests.
- Promote it with a blog post on our new website!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 27784470-travis-yml.patch | 8.96 KB | jon pugh |
Comments
Comment #2
jon pughComment #3
jon pughComment #4
helmo commentedmerged
Comment #5
steven jones commentedGreat work!
Comment #6
jon pughComment #7
jon pughI've updated the issue to be a META issue for improving testing across the board.
Comment #8
jon pughComment #9
jon pughComment #10
helmo commentedI 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/ ?
Comment #11
jon pughWe 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
Comment #12
jon pughFixed the travis file, merged to provision 7.x-3.x!
Thanks, Helmo.
Comment #13
helmo commentedComment #14
realityloop commentedsuggest opening new issues as they are required