Commit 352db7e5 by Sylvester Keil

Add build matrix

parent 7f32d5a9
language: ruby language: ruby
bundler_args: --without debug
script: bundle exec rake test_with_coveralls
sudo: false sudo: false
cache: bundler cache: bundler
rvm: matrix:
- 2.3.0 include:
- 2.2 - rvm: 2.3.1
- 2.1 env: WITH_COVERALLS=true
- 2.0 - rvm: 2.2
- rbx-2 env: WITH_COVERALLS=false
- rvm: 2.1
env: WITH_COVERALLS=false
- rvm: 2.0
env: WITH_COVERALLS=false
- rvm: jruby-19mode
env: WITH_COVERALLS=false
- rvm: rbx-2
env: WITH_COVERALLS=false
allow_failures:
- rvm: rbx-2
install:
- if [[ $WITH_COVERALLS = "true" ]]; then
bundle install --without debug extra;
else
bundle install --without debug extra coverage;
fi
script:
- if [[ $WITH_COVERALLS = "true" ]]; then
bundle exec rake test_with_coveralls;
else
bundle exec rake;
fi
notifications: notifications:
email: email:
recipients: recipients:
- sylvester@keil.or.at - sylvester@keil.or.at
on_success: change on_success: change
on_failure: always on_failure: change
matrix:
allow_failures:
- rvm: rbx-2
...@@ -2,12 +2,10 @@ source 'https://rubygems.org' ...@@ -2,12 +2,10 @@ source 'https://rubygems.org'
gemspec gemspec
group :development do group :development do
if RUBY_VERSION >= '2.2.2' if RUBY_VERSION >= '2.2.2'
gem 'test-unit' gem 'test-unit'
else else
gem 'minitest', '< 5.0' gem 'minitest', '< 5.0'
gem 'listen', '~>3.0.0'
end end
gem 'rake' gem 'rake'
...@@ -17,7 +15,13 @@ group :development do ...@@ -17,7 +15,13 @@ group :development do
gem 'redcarpet' gem 'redcarpet'
gem 'unicode_utils' gem 'unicode_utils'
end
group :extra do
gem 'listen', '~>3.0.0'
end
group :coverage do
gem 'simplecov', '~>0.9', :require => false gem 'simplecov', '~>0.9', :require => false
gem 'rubinius-coverage', :platform => :rbx gem 'rubinius-coverage', :platform => :rbx
gem 'coveralls', :require => false gem 'coveralls', :require => false
......
...@@ -15,9 +15,13 @@ Cucumber::Rake::Task.new(:features) ...@@ -15,9 +15,13 @@ Cucumber::Rake::Task.new(:features)
task :default => [:features] task :default => [:features]
require 'coveralls/rake/task' begin
Coveralls::RakeTask.new require 'coveralls/rake/task'
task :test_with_coveralls => [:features, 'coveralls:push'] Coveralls::RakeTask.new
task :test_with_coveralls => [:features, 'coveralls:push']
rescue LoadError => e
# ignore
end
task :release do |t| task :release do |t|
system "gem build jekyll-scholar.gemspec" system "gem build jekyll-scholar.gemspec"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment