Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Models and classes shared by Travis CI api, hub and gatekeeper
Ruby PLpgSQL Other
Latest commit 9a9f4ca @drogus drogus Merge pull request #497 from travis-ci/send-default-branch-info-in-pu…

Add default branch info to repository in builds payload for pusher


Build Status

Travis Core (or travis-core) contains shared code among different Travis CI applications.

See the README in lib/travis for more information on the structure of the repository.


Travis Core requires PostgreSQL 9.3 or higher, as well as a recent version of Redis and RabbitMQ.

Repository setup

  1. Clone the repository: git clone
  2. Install gem dependencies: cd travis-core; bundle install --binstubs --path=vendor/gems
  3. Set up the database: bin/rake db:create db:structure:load
  4. Link the logs table migration to the proper place and perform DB migration:
pushd db/migrate
ln -svf ../../spec/migrations/*
bin/rake db:migrate
git checkout -- db/structure.sql

Repeat the database steps for RAILS_ENV=test.

RAILS_ENV=test bin/rake db:create db:structure:load
RAILS_ENV=test bin/rake db:migrate
git checkout -- db/structure.sql

Running tests

To run the RSpec tests, first make sure PostgreSQL, Redis and RabbitMQ are running, then do:


Individual specs can be run with bin/rspec; e.g.,

bundle exec rspec spec/travis/model/job_spec.rb

Submitting patches

Please fork the repository and submit a pull request. For larger changes, please open a ticket on our main issue tracker first.

Something went wrong with that request. Please try again.