Skip to content
This repository has been archived by the owner on May 23, 2018. It is now read-only.

Add travis.yml #64

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
language: ruby
rvm:
- 2.0
- 2.1
- 2.2
- jruby-9.0.0.0
- jruby
- rbx-2

env:
- "SUITE=units DB=postgresql"
# https://github.com/jruby/jruby/issues/779
- rvm: jruby
before_install:
# https://github.com/travis-ci/travis-ci/issues/4720
- if [[ ${TRAVIS_RUBY_VERSION} =~ jruby-9\.0 ]] ;
then
rvm get master ;
rvm use ${TRAVIS_RUBY_VERSION} --install ;
ruby --version ;
fi

script:
- cd cms
- bundle install
- cp config/email.yml.sample config/email.yml
- cp config/database.yml.sample config/database.yml
- cp config/secrets.yml.sample config/secrets.yml
- cp config/newrelic.yml.sample config/newrelic.yml
- "JRUBY_OPTS=-J-Xmx1024m bundle exec rails c"
- JRUBY_OPTS='-J-Xmx1024m -J-XX:MaxPermSize=1024m' bundle exec rails c
- bundle exec rails c
notifications:
email: false
6 changes: 6 additions & 0 deletions cms/Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
source 'https://rubygems.org'

gem 'byebug'
gem 'capybara'
gem 'rspec', '~> 3.0'
gem 'rspec-rails', '~> 3.0'
gem 'factory_girl_rails'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 4.1.8'

Expand Down
46 changes: 46 additions & 0 deletions cms/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ GEM
tzinfo (~> 1.1)
acts_as_list (0.6.0)
activerecord (>= 3.0)
addressable (2.4.0)
ancestry (2.1.0)
activerecord (>= 3.0.0)
arel (5.0.1.20140414130214)
Expand All @@ -54,8 +55,16 @@ GEM
bootstrap-sass (2.3.2.1)
sass (~> 3.2)
builder (3.2.2)
byebug (9.0.5)
callsite (0.0.11)
cancan (1.6.10)
capybara (2.7.1)
addressable
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
choice (0.1.7)
climate_control (0.0.3)
activesupport (>= 3.0)
Expand All @@ -72,6 +81,7 @@ GEM
daemons (1.2.1)
dalli (2.7.4)
debug_inspector (0.0.2)
diff-lcs (1.2.5)
diffy (3.0.7)
ensure_valid_encoding (0.5.3)
erubis (2.7.0)
Expand All @@ -80,6 +90,11 @@ GEM
actionmailer (>= 3.0.4)
activesupport (>= 3.0.4)
execjs (2.4.0)
factory_girl (4.7.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.7.0)
factory_girl (~> 4.7.0)
railties (>= 3.0.0)
font-awesome-rails (4.0.3.2)
railties (>= 3.2, < 5.0)
haml (4.0.6)
Expand Down Expand Up @@ -183,6 +198,27 @@ GEM
ref (1.0.5)
responders (1.1.2)
railties (>= 3.2, < 4.2)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-core (3.4.4)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-rails (3.4.2)
actionpack (>= 3.0, < 4.3)
activesupport (>= 3.0, < 4.3)
railties (>= 3.0, < 4.3)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
ruby-graphviz (1.0.9)
ruby_parser (3.6.5)
sexp_processor (~> 4.1)
Expand Down Expand Up @@ -227,6 +263,8 @@ GEM
json (>= 1.8.0)
warden (1.2.3)
rack (>= 1.0)
xpath (2.0.0)
nokogiri (~> 1.3)

PLATFORMS
ruby
Expand All @@ -237,14 +275,17 @@ DEPENDENCIES
better_errors
binding_of_caller
bootstrap-sass (= 2.3.2.1)
byebug
cancan
capybara
cocaine
coffee-rails (~> 4.0.0)
dalli
devise!
diffy
ensure_valid_encoding
exception_notification
factory_girl_rails
font-awesome-rails (~> 4.0.3.1)
haml
haml-rails
Expand All @@ -267,10 +308,15 @@ DEPENDENCIES
rails-erd
ransack
raphael-rails
rspec (~> 3.0)
rspec-rails (~> 3.0)
sass-rails (~> 4.0.0)
sdoc
simple_form (~> 3.0.0.rc)
therubyracer
thin
turbolinks
uglifier (>= 1.3.0)

BUNDLED WITH
1.12.4
17 changes: 17 additions & 0 deletions cms/bin/coderay
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'coderay' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("coderay", "coderay")
17 changes: 17 additions & 0 deletions cms/bin/dot2ruby
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'dot2ruby' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("ruby-graphviz", "dot2ruby")
17 changes: 17 additions & 0 deletions cms/bin/erd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'erd' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("rails-erd", "erd")
17 changes: 17 additions & 0 deletions cms/bin/erubis
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'erubis' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("erubis", "erubis")
17 changes: 17 additions & 0 deletions cms/bin/gem2gv
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'gem2gv' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("ruby-graphviz", "gem2gv")
17 changes: 17 additions & 0 deletions cms/bin/git2gv
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'git2gv' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("ruby-graphviz", "git2gv")
17 changes: 17 additions & 0 deletions cms/bin/haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'haml' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("haml", "haml")
17 changes: 17 additions & 0 deletions cms/bin/html2haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'html2haml' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("html2haml", "html2haml")
17 changes: 17 additions & 0 deletions cms/bin/htmldiff
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'htmldiff' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("diff-lcs", "htmldiff")
17 changes: 17 additions & 0 deletions cms/bin/kramdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'kramdown' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("kramdown", "kramdown")
17 changes: 17 additions & 0 deletions cms/bin/ldiff
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'ldiff' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("diff-lcs", "ldiff")
17 changes: 17 additions & 0 deletions cms/bin/mongrel_rpm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'mongrel_rpm' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("newrelic_rpm", "mongrel_rpm")
17 changes: 17 additions & 0 deletions cms/bin/newrelic
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'newrelic' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("newrelic_rpm", "newrelic")
Loading