-
Notifications
You must be signed in to change notification settings - Fork 106
Can't run integration tests in CircleCI #7
Comments
After more research, here is the explanation:
Therefore, there may not be any way to test this script in a virtualized CI environment. |
I am not sure I understand 100% what you are trying to do in your test. Is it an inherent need to run in a VM, i.e. to test that the install works in a clean environment, or are you just hitting a roadblock because the CI servers available use VM's? In the last case, I might suggest using a Jenkins server for the integration testing. Jenkins by default doesn't run things in virtual machines (unless you actively run the Jenkins slave on a VM). Can you explain shortly which tests you would want to run, and what output you would be expecting, then I might try to setup a test test :-). |
@JKrag: Heh, I guess I didn't make it very clear what I wanted to do in this bug, thanks for pointing that out :) My goal is to create an integration test for docker-osx-dev that performs the following steps:
I roughly captured these ideas in the While I can run this test locally, I'd like it to run as part of a CI job after every commit and PR. Unfortunately, most free CI hosts do not offer OS X as an operating system, and those that do--namely, Circle CI and Travis CI--run your tests in a VM, which makes it impossible to fire up the Boot2Docker VM within it. I could create my own server environment with Jenkins, but docker-osx-dev is just a side project, so I'd prefer to stick with free, supported CI environments. If you have any ideas, let me know. Otherwise, it may be better to focus on creating unit tests instead of integration tests, as described in #27. |
Is this circleCI VM a unix one ? |
@brikis98 is this ticket up to date? What's the latest status? |
@Simperfit: it's a VM image of OS X. Running a VM-in-a-VM is the issue. @ain: The status is unchanged. I do not have a good way to run integration tests in a CI environment at the moment due to the VM-in-a-VM issue. |
Running integration tests in CircleCI or TravisCI will fail. This is because the integration tests need to run Boot2Docker in a VM, but in a CI environment, the tests are already running in a VM, and nested VMs are not supported in most environments. See comments below for more details.
The text was updated successfully, but these errors were encountered: