0.22
Repository is archived
No commit activity in last 3 years
No release in over 3 years
[description]
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 3.1.1
~> 3.1.1
~> 0.8.2
~> 1.4.2
~> 0.0.16
~> 0.3.0
~> 0.6.5
~> 0.8.1
~> 0.5.0
~> 3.1.1
~> 0.9.2
~> 0.0.10
~> 0.14.6
 Project Readme

travis-core

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.

Contributing

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 https://github.com/travis-ci/travis-core.git
  2. Install gem dependencies: cd travis-core; bundle install --binstubs --path=vendor/gems

Database setup

NB detail for how rake sets up the database can be found in the Rakefile. In the namespace :db block you will see the database name is configured using the environment variable RAILS_ENV. If you are using a different configuration you will have to make your own adjustments.

  1. bundle exec rake db:create
  2. for testing, you will need to run RAILS_ENV=test bundle exec rake db:create --trace

Running tests

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

./build.sh

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.