Sign inSign up

maxmilton/travis

By maxmilton

•Updated over 7 years ago

Run travis CLI commands without having to install Ruby and all its dependencies.

Image
0

1.3K

maxmilton/travis repository overview

DEPRECATED: Use the image from my dockerfiles repo instead: https://github.com/MaxMilton/dockerfiles/tree/master/travis⁠


Build Status Image version Image layers

⁠Travis CLI via Docker

Run travis CLI commands without having to install Ruby and all its dependencies.

Originally based on the work here⁠.

⁠Usage

⁠1. Get image

Download from Docker Hub:

docker pull maxmilton/travis

Or build locally:

docker build -t travis-cli .
⁠2. Run travis commands

For example

docker run --rm -v $(pwd):/project --rm maxmilton/travis lint .travis.yml

See travis-ci readme⁠ for more usage information.

⁠Bonus tip

For convenience, I highly recommend creating a shell alias to allow you to use travis commands more naturally. In your .bashrc, .zshrc, etc. add:

alias travis='docker run -ti --rm -v $(pwd):/project maxmilton/travis'

You can now use travis CLI by just using the keyword travis, e.g.:

travis lint .travis.yml

⁠Licence

Released under the MIT licence; see LICENCE⁠.


© 2017 We Are Genki⁠

Tag summary

Content type

Image

Digest

Size

36.2 MB

Last updated

over 7 years ago

docker pull maxmilton/travis