Skip to content

Commit

Permalink
Override the Jekyll version in CI with more finesse
Browse files Browse the repository at this point in the history
Co-authored-by: Ashwin Maroli <ashmaroli@users.noreply.github.com>
  • Loading branch information
parkr and ashmaroli committed Jan 4, 2019
1 parent 9b11526 commit 129bd31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rvm:
matrix:
include:
- rvm: 2.6
env: JEKYLL_VERSION=3.7
env: JEKYLL_VERSION=3.7.0
os: linux
branches:
only:
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
source "https://rubygems.org"
gemspec

gem "jekyll", "~> #{ENV["JEKYLL_VERSION"]}" if ENV["JEKYLL_VERSION"]

group :test do
gem "webmock", "~> 2.0"
end
2 changes: 1 addition & 1 deletion jekyll-github-metadata.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
spec.files = `git ls-files -z`.split("\x0").grep(%r!^(lib|bin)/!)
spec.require_paths = ["lib"]

spec.add_runtime_dependency "jekyll", ENV["JEKYLL_VERSION"] ? "~> #{ENV["JEKYLL_VERSION"]}" : nil
spec.add_runtime_dependency "jekyll", "~> 3.4"
spec.add_runtime_dependency "octokit", "~> 4.0", "!= 4.4.0"

spec.add_development_dependency "bundler", "~> 1.5"
Expand Down

0 comments on commit 129bd31

Please sign in to comment.