mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
Using master Gemfile and Rakefile cuz travis sucks.
This commit is contained in:
parent
4dc371b854
commit
922b4cdaac
@ -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
|
||||
|
4
Gemfile
4
Gemfile
@ -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'
|
||||
|
8
Rakefile
8
Rakefile
@ -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:"
|
||||
|
@ -1,7 +0,0 @@
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "rake", "~> 10.0"
|
||||
|
||||
group :test do
|
||||
gem "minitest", "~> 4.6"
|
||||
end
|
@ -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
|
Loading…
Reference in New Issue
Block a user