Travis Build is a library that Travis Workers use to generate a shell based build script which is then uploaded to the VMs using SSH and executed, with the resulting output streamed back to Travis.
This code base has gone through several iterations of development, and was originally extracted from Travis Worker, before taking it's current form.
Since the specs runs the generated build script, we recommend running it in a virtual machine to contain the changes. There's a Vagrantfile in this repository, so you can use Vagrant for this:
vagrant up
vagrant ssh
cd /vagrant
bundle exec rspec spec
If you wish to just run the specs, you can just run bundle exec rspec spec
.
You can set travis-build up as a plugin for the command line client:
ln -s PATH_TO_TRAVIS_BUILD ~/.travis/travis-build
Now you can run one or many stages locally (defaults to script stage):
$ travis run
... executes test ...
$ travis run install
... installs dependencies ...
$ travis run install script
... installs dependencies ...
... executes test ...
See LICENSE file.
Copyright (c) 2011-2013 Travis CI development team.