Git Product home page Git Product logo

travis-core's Introduction

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
  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/*
popd
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:

./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.

travis-core's People

Contributors

svenfuchs avatar drogus avatar joshk avatar roidrage avatar rkh avatar banzaiman avatar sarahhodne avatar michaelklishin avatar kl-7 avatar dmathieu avatar aaron1011 avatar moro avatar flippingbits avatar laserlemon avatar dhiemstra avatar christeredvartsen avatar lucaspinto avatar geekoncoffee avatar loicfrering avatar meatballhat avatar vipulnsward avatar tjmcewan avatar awsmsrc avatar jmazzi avatar sferik avatar akerl avatar ndbroadbent avatar phlipper avatar randym avatar hibariya avatar

Watchers

dawg avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.