Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ Gemfile.lock
test/destination
.bundle
pkg/
.jekyll-metadata
22 changes: 19 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
language: ruby
script : script/cibuild
sudo: false

rvm:
- 2.1
- 2.0
- 1.9.3
- 2.2
- 2.1
- 2.0
env:
- ""
- JEKYLL_VERSION=3.0.0.beta8
- JEKYLL_VERSION=2.0
matrix:
include:
- # GitHub Pages
rvm: 2.1.1
env: GH_PAGES=true
- # Ruby 1.9
rvm: 1.9
env: JEKYLL_VERSION=2.0
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
source 'https://rubygems.org'
gemspec

if ENV["GH_PAGES"]
gem "github-pages"
elsif ENV["JEKYLL_VERSION"]
gem "jekyll", "~> #{ENV["JEKYLL_VERSION"]}"
end
8 changes: 8 additions & 0 deletions lib/jekyll-archives.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ module Archives
autoload :Archive, 'jekyll-archives/archive'
autoload :VERSION, 'jekyll-archives/version'

if (Jekyll.const_defined? :Hooks)
Jekyll::Hooks.register :site, :after_reset do |site|
# We need to disable incremental regen for Archives to generate with the
# correct content
site.regenerator.instance_variable_set(:@disabled, true)
end
end

class Archives < Jekyll::Generator
safe true

Expand Down
1 change: 1 addition & 0 deletions script/cibuild
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /bin/sh
set -e

bundle exec rake test