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

need a docker image to mimic the travis environment #2144

Closed
gonewest818 opened this issue Dec 18, 2017 · 3 comments
Closed

need a docker image to mimic the travis environment #2144

gonewest818 opened this issue Dec 18, 2017 · 3 comments

Comments

@gonewest818
Copy link
Contributor

While resolving other travis-related issues, it became clear the project needs a dev docker environment that can run locally on one's laptop but emulates what is going on in travis. This would be a place to debug not only issues with travis, but also a way to run "make test" and "make test-bytecomp" locally.

@bbatsov
Copy link
Member

bbatsov commented Dec 18, 2017

That would be nice indeed.

@timvisher
Copy link

I think it's possible to use TravisCI's images? https://medium.com/google-developers/how-to-run-travisci-locally-on-docker-822fc6b2db2e

@gonewest818
Copy link
Contributor Author

Interesting. I hadn't seen that one before. But for sake of simplicity, all I'm doing is building a Dockerfile and a few convenience scripts such that you can build a docker container that runs and drops you into a bash shell.

So it's an emulation of the build environment that Travis uses, but it doesn't at all try to emulate the way the jobs are launched in Travis.

https://github.com/gonewest818/cider/blob/2144-docker-image/Dockerfile

You can run that container with your source tree mounted such that you can edit as you like from your host computer but then switch to the docker shell and make clean test to confirm tests. I'm preinstalling emacs-{25.3,26-pretest,git-snapshot}-travis so you can toggle emacs versions and retest evm use emacs-26-pretest-travis; make elpaclean test.

Still a work in progress.

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

3 participants