Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to run hitch on Travis-CI and other CI services #15

Open
thedrow opened this issue Oct 11, 2015 · 6 comments
Open

Document how to run hitch on Travis-CI and other CI services #15

thedrow opened this issue Oct 11, 2015 · 6 comments

Comments

@thedrow
Copy link
Contributor

thedrow commented Oct 11, 2015

Since this is a testing framework, explaining how to run hitch on CI services is crucial.

@crdoconnor
Copy link
Contributor

Yeah, I need to add a page on readthedocs about that.

There's is an example travis config already that has been running for some time: https://github.com/hitchtest/django-remindme/blob/master/.travis.yml

If you write your own tests on your own project, there's a good chance that one will suffice for you. It's not that complicated and the set up steps are much the same as they are on your development environment.

I've also got an example settings file that is suitable for use on a CI environment on the example project: https://github.com/hitchtest/django-remindme-tests/blob/master/ci.settings

That switches off fail fast and runs firefox in headless mode.

@crdoconnor
Copy link
Contributor

@thedrow
Copy link
Contributor Author

thedrow commented Oct 13, 2015

Yes, document usage with tox and if there are any folders to be cached in order to get faster build time on Travis.
You can also recommend to create a docker container which already has everything set up for hitch to run tests quickly.

@crdoconnor
Copy link
Contributor

Tox shouldn't be used with hitch. Hitch already does everything tox does anyway (except run your existing unit tests, but even that's coming very soon).

Travis, annoyingly, won't let you apt-get install on their container based infrastructure and their workaround is just awful. Not workable. It'll remain slow for now.

http://docs.travis-ci.com/user/migrating-from-legacy/#What-are-the-restrictions%3F

If you've got a private repository, you can cache the ~/.hitchpkg folder, though. I'll add that to the docs.

Docker can be used to run hitch, but since A) it's already a one step process to get it up and running and B) docker doesn't work on Mac and C) getting firefox to run non-headless in a container seems to be monstrously hard I'm not sure I see the point.

@thedrow
Copy link
Contributor Author

thedrow commented Oct 13, 2015

Their new KVM infrastructure allows you to run Docker containers. See http://docs.travis-ci.com/user/docker/
Caching also works for open source now.

@crdoconnor
Copy link
Contributor

Huh. I guess the other doc page is out of date.

Let me take another look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants