-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:github/pages-gem
* 'master' of github.com:github/pages-gem: Update cibuild for new subcommands. Create two subcommands: 'versions', 'br'. Print directly in executable. h/t @ixti Test the executable Add executable. Output the dependency versions for this build of Pages.
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env ruby | ||
|
||
command = ARGV[0].to_s.downcase | ||
|
||
case command | ||
when "versions" | ||
require File.expand_path("../../lib/github-pages", __FILE__) | ||
GitHubPages.gems.each { |g,v| puts "gem '#{g}', '#{v}'" } | ||
when "br" | ||
puts [ | ||
"gem 'github-pages'", | ||
":branch => '#{ARGV[1]}'", | ||
":git => 'git://github.com/github/pages-gem'" | ||
].join(", ") | ||
else | ||
abort "error: '#{command}' is an unrecognized command. options are: 'versions', 'br'." | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
#!/bin/sh | ||
# Test that all dependencies resolve | ||
|
||
set -e | ||
set -ex | ||
|
||
bundle exec bin/github-pages versions | ||
bundle exec bin/github-pages br my-branch | ||
bundle exec jekyll --version | ||
bundle exec rspec |