Permalink
Browse files

Setup TravisCI

  • Loading branch information...
eoinkelly committed May 18, 2015
1 parent 932aa7c commit 3bb1dd3454e71207da9bdece3bb734f0910cae74
Showing with 23 additions and 5 deletions.
  1. +10 −0 .travis.yml
  2. +4 −5 Gemfile
  3. +2 −0 README.md
  4. +4 −0 config/database.travis.yml
  5. +3 −0 spec/spec_helper.rb
@@ -0,0 +1,10 @@
language: ruby
cache: bundler
bundler_args: --without development
rvm:
- 2.1.2
before_script:
- "cp config/database.travis.yml config/database.yml"
- "psql -c 'create database travis_ci_test' -U postgres"
- "RAILS_ENV=test bundle exec rake db:schema:load"
script: RAILS_ENV=test bundle exec rspec spec -f p
@@ -219,13 +219,12 @@ group :development, :test do
gem 'byebug', :platforms => [:mingw_20, :ruby_20, :ruby_21]
gem 'pry-byebug', :platforms => [:mingw_20, :ruby_20, :ruby_21]
gem 'awesome_print'
gem "rspec-rails", "~> 3.0.0"
gem "factory_girl_rails", "~> 4.3.0", require: false
end

group :test do
gem 'poltergeist'
gem "rspec-rails", "~> 3.0.0"

# Why we cannot load factories by default in :development
# Why we cannot load factories by default in :development :
#
# Some of our factories reference models in a way that cannot be made lazy.
# This causes `rake environment` to depend on a working set of ActiveRecord
@@ -239,8 +238,8 @@ group :test do
# irb> require 'factory_girl'
# irb> FactoryGirl.find_definitions
#
gem "factory_girl_rails", "~> 4.3.0"

gem "capybara", "~> 2.4.1"
gem "database_cleaner", "~> 1.4.1"
gem 'poltergeist'
end
@@ -1,5 +1,7 @@
# Kete 2.0 work in progress

[![Build Status](https://travis-ci.org/kete/kete.svg?branch=kete2)](https://travis-ci.org/kete/kete)

This branch is a partially complete modernisation of the Kete codebase

* upgrade to Rails 3
@@ -0,0 +1,4 @@
test:
adapter: postgresql
database: travis_ci_test
username: postgres
@@ -5,6 +5,9 @@
require 'capybara/rails'
require 'database_cleaner'
require 'capybara/poltergeist'
require 'factory_girl'

FactoryGirl.find_definitions

Capybara.javascript_driver = :poltergeist

0 comments on commit 3bb1dd3

Please sign in to comment.