Sign inSign up

fluiddyn/travis-python-debug

By fluiddyn

•Updated over 8 years ago

Image
0

239

fluiddyn/travis-python-debug repository overview

⁠Travis Python Docker Image for Debugging

Utilises the travis-python image along with travis-cli⁠ and travis-build⁠ to create an environment where you can debug/test your Travis Python builds.

⁠Building

To build from Dockerfile⁠ do the following:

hg clone https://bitbucket.org/fluiddyn/fluiddevops
cd fluiddevops/docker
make build image=travis-python-debug

⁠Running

When started with:

make run image=travis-python-debug

You'll arrive at a bash prompt in /home/travis/build. In here, you can clone your project, ensuring you include your username in the full path, like:

git clone https://github.com/myuser/myrepo.git myuser/myrepo

This is because the generated travis build script relies on the full path. You then compile your build script with:

cd myuser/myrepo
travis compile > ~/build/build.sh
chmod 755 ~/build/build.sh
cd ~/build

or equivalent. You can then try running your build with the ~/build/build.sh script.

⁠Rerunning Builds

If you'd like to be able to re run your builds (as dependencies can take a while to download), ensure your scripts tidy up your file system. Then, after exiting from a previous container run, restart and attach to the container with:

docker start travis-debug-python
docker attach travis-debug-python

You'll then be starting afresh, but hopefully with your dependencies from the previous run retained.

Tag summary

Content type

Image

Digest

Size

2 GB

Last updated

over 8 years ago

docker pull fluiddyn/travis-python-debug