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

detect py.test error in container created by docker-compose #16

Closed
samuelololol opened this issue Aug 16, 2015 · 1 comment
Closed

detect py.test error in container created by docker-compose #16

samuelololol opened this issue Aug 16, 2015 · 1 comment
Assignees
Labels

Comments

@samuelololol
Copy link
Owner

detect py.test error in container created by docker-compose

docker-compose will graceful stopping with exit code 0
exit0

@samuelololol
Copy link
Owner Author

factory.addStep(steps.ShellCommand(
    name="prepare test containers",
    description="launching(docker-compose)",
    descriptionDone="launched",
    workdir=build_dir_path+'/docker-test',
    command=["docker-compose", "up"]))

factory.addStep(steps.ShellCommand(
    name="test with containers",
    description="testing",
    descriptionDone="testeded",
    workdir=build_dir_path+'/docker-test',
    command=["docker-compose", "run", "--rm",
             "tester", "py.test"]))

docker-compose up -d
docker-compose run tester py.test
works!

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

No branches or pull requests

1 participant