Skip to content

Commit

Permalink
Use Gemfile specialized for running tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
satoryu committed Aug 27, 2016
1 parent 8fa64b8 commit 3e25abb
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ before_script:

script: if [ $TEST_MODE = "gem" ] ; then bundle exec tdiary test ; else bundle exec rake spec jasmine:ci test ; fi

gemfile: ./Gemfile.ci

env:
- TEST_MODE=rack
- TEST_MODE=gem
Expand Down
48 changes: 48 additions & 0 deletions Gemfile.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
source 'https://rubygems.org'

gem 'rack'
gem 'hikidoc'
gem 'fastimage'
gem 'emot'
gem 'mail'
gem 'rake'

group :rack do
gem 'sprockets'
end

group :development do
gem 'pit', require: false
gem 'racksh', require: false
gem 'redcarpet'

group :test do
gem 'pry-byebug', platforms: [:ruby_20, :ruby_21]
gem 'test-unit'
gem 'rspec'
gem 'capybara', require: 'capybara/rspec'
gem 'selenium-webdriver'
gem 'launchy'
gem 'sequel'
gem 'sqlite3'
gem 'phantomjs', '= 1.9.8.0'
gem 'jasmine'
gem 'simplecov', require: false
gem 'coveralls', '~> 0.7.12', require: false
end
end

# https://github.com/redmine/redmine/blob/master/Gemfile#L89
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
if File.exist?(local_gemfile)
puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`
instance_eval File.read(local_gemfile)
end

# Local Variables:
# mode: ruby
# indent-tabs-mode: t
# tab-width: 3
# ruby-indent-level: 3
# End:
# vim: ts=3 filetype=ruby

0 comments on commit 3e25abb

Please sign in to comment.