I am involved with a Python/Flask based project and have to check with Travis CI builds before I submit any work. I find it cumbersome to push and then wait for the build to be done on Travis' end, check why the tests are failing and then fix, push, lather, rinse and repeat.
Can I not run Travis's setup locally? Someone has already How to run travis-ci locally but they point to different components of Travis individually. So far I have managed to install the travis-ci
CLI and travis-build
as an add-on.
Ideally I would want my workflow to be:
- commit some work
- have
travis-ci
server running locally - enter a command, say
travis build ~/myrepo
and then it would spin off a docker container and build as if it was building on travis-ci.org website, showing me a log in the server dashboard.
Can this be done?