Skip to content

Instantly share code, notes, and snippets.

@jamescarr
Last active August 29, 2015 13:59
Show Gist options
  • Select an option

  • Save jamescarr/10698207 to your computer and use it in GitHub Desktop.

Select an option

Save jamescarr/10698207 to your computer and use it in GitHub Desktop.
#!/bin/bash
docker run --name ${JOB_NAME} -v ${WORKSPACE}:/project zapier/project-tests
# copy build artifacts out of the container
docker cp ${JOB_NAME}:/project/nosetests.xml .
docker cp ${JOB_NAME}:/project/coverage.xml .
docker cp ${JOB_NAME}:/project/cover .
# remove the container
docker rm ${JOB_NAME}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment