Skip to content

Commit

Permalink
feat(ci): setup travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenosloan committed Jan 4, 2016
1 parent f3c6dc2 commit 057c711
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
@@ -0,0 +1,10 @@
language: ruby
cache: bundler
rvm:
- 2.0
- 2.1
- 2.2
- 2.3
gemfile:
- spec/gemfiles/middleman.3.3.gemfile
- spec/gemfiles/middleman.4.0.gemfile
2 changes: 1 addition & 1 deletion spec/gemfiles/middleman.4.0.gemfile
Expand Up @@ -3,4 +3,4 @@ loader_gemfile.sub! "gemspec", 'gemspec path: "../../"'
loader_gemfile.sub! "path: 'spec/", "path: '../../spec/"
eval loader_gemfile, binding

gem 'middleman', git: 'git@github.com:middleman/middleman.git'
gem 'middleman', '~> 4.0'
12 changes: 10 additions & 2 deletions tasks/specs.rake
Expand Up @@ -38,10 +38,18 @@ namespace :specs do
end
end

desc "run middleman specs w/ CI gemfile"
task :ci do
system 'bundle exec rspec spec/'
end
end

desc "run all specs on ruby #{RUBY_VERSION}"
task :specs do
Rake::Task['specs:stable'].invoke
Rake::Task['specs:head'].invoke
if ENV['CI']
Rake::Task['specs:ci'].invoke
else
Rake::Task['specs:stable'].invoke
Rake::Task['specs:head'].invoke
end
end

0 comments on commit 057c711

Please sign in to comment.