Using master Gemfile and Rakefile cuz travis sucks.

This commit is contained in:
Parker Moore 2013-02-28 21:47:22 +01:00
parent 4dc371b854
commit 922b4cdaac
5 changed files with 13 additions and 17 deletions

View File

@ -6,4 +6,4 @@ rvm:
script:
- bundle exec rake install
- bundle exec rake generate
- "cd lib && bundle install && bundle exec rake test"
- bundle exec rake test

View File

@ -18,4 +18,8 @@ group :development do
gem 'rdiscount', '~> 1.6.8'
end
group :test do
gem "minitest", "~> 4.6"
end
gem 'sinatra', '~> 1.3.3'

View File

@ -8,6 +8,7 @@ require 'tzinfo'
require 'rake/minify'
require 'yaml'
require 'octopress'
require "rake/testtask"
### Configuring Octopress:
### Under _config/ you will find:
@ -460,6 +461,13 @@ task :list_drafts do
puts unpublished.empty? ? "There are no posts currently in draft" : unpublished
end
#
# Run tests for Octopress module, found in lib/.
#
Rake::TestTask.new do |t|
t.pattern = "spec/**/*_spec.rb"
end
def get_unpublished(posts, options={})
result = ""
message = options[:message] || "These Posts will not be published:"

View File

@ -1,7 +0,0 @@
source "https://rubygems.org"
gem "rake", "~> 10.0"
group :test do
gem "minitest", "~> 4.6"
end

View File

@ -1,9 +0,0 @@
$:.unshift File.dirname(__FILE__) # For use/testing when no gem is installed
require "rubygems"
require "octopress"
require "rake/testtask"
Rake::TestTask.new do |t|
t.pattern = "spec/**/*_spec.rb"
end