yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sek...@apache.org
Subject yetus git commit: YETUS-329 update docs generation to use rel/VERSION tags.
Date Mon, 21 Mar 2016 16:06:05 GMT
Repository: yetus
Updated Branches:
  refs/heads/master 49a6b0c5c -> ae566eef8


YETUS-329 update docs generation to use rel/VERSION tags.

  - change git checkout to use 'rel/VERSION' tag
  - wrap changed line to 100 col
  - update rubocop config to make max line length 100

Signed-off-by: Kengo Seki <sekikn@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/ae566eef
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/ae566eef
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/ae566eef

Branch: refs/heads/master
Commit: ae566eef81b8ebd525ab640e286983929a71b5cd
Parents: 49a6b0c
Author: Sean Busbey <busbey@apache.org>
Authored: Mon Mar 21 09:47:26 2016 -0500
Committer: Kengo Seki <sekikn@apache.org>
Committed: Tue Mar 22 01:05:01 2016 +0900

----------------------------------------------------------------------
 .rubocop.yml           | 4 ++++
 asf-site-src/config.rb | 5 ++++-
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/ae566eef/.rubocop.yml
----------------------------------------------------------------------
diff --git a/.rubocop.yml b/.rubocop.yml
new file mode 100644
index 0000000..2fd1917
--- /dev/null
+++ b/.rubocop.yml
@@ -0,0 +1,4 @@
+Metrics/LineLength:
+  Max: 100
+Metrics/MethodLength:
+  Max: 30

http://git-wip-us.apache.org/repos/asf/yetus/blob/ae566eef/asf-site-src/config.rb
----------------------------------------------------------------------
diff --git a/asf-site-src/config.rb b/asf-site-src/config.rb
index 74d6166..e1381a0 100644
--- a/asf-site-src/config.rb
+++ b/asf-site-src/config.rb
@@ -111,7 +111,10 @@ def build_release_docs(output, version)
   FileUtils.rm_rf("#{output}/build-#{version}", secure: true)
   FileUtils.rm_rf("#{output}/#{version}", secure: true)
   puts "\tcloning from tag."
-  `(cd "#{output}" && git clone --depth 1 --branch "#{version}" --single-branch --
"#{GITREPO}" "build-#{version}") >"#{output}/#{version}_git_checkout.log" 2>&1`
+  `(cd "#{output}" && \
+    git clone --depth 1 --branch "rel/#{version}" --single-branch -- \
+        "#{GITREPO}" "build-#{version}" \
+   ) >"#{output}/#{version}_git_checkout.log" 2>&1`
   unless $?.exitstatus == 0
     abort("building docs failed to for #{version}.")
   end


Mime
View raw message