You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by co...@apache.org on 2015/02/21 00:40:08 UTC
bigtop git commit: BIGTOP-1697. Bootstrap: hook up toolchain into
gradle build
Repository: bigtop
Updated Branches:
refs/heads/master f5a8a375e -> db06288f6
BIGTOP-1697. Bootstrap: hook up toolchain into gradle build
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/db06288f
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/db06288f
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/db06288f
Branch: refs/heads/master
Commit: db06288f64b703b0d4461b4eaec9206a6a7ee65a
Parents: f5a8a37
Author: Konstantin Boudnik <co...@apache.org>
Authored: Fri Feb 20 15:28:43 2015 -0800
Committer: Konstantin Boudnik <co...@apache.org>
Committed: Fri Feb 20 15:39:56 2015 -0800
----------------------------------------------------------------------
build.gradle | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/bigtop/blob/db06288f/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 88e84b8..da12231 100644
--- a/build.gradle
+++ b/build.gradle
@@ -63,10 +63,23 @@ project(':itest-common') {
}
}
+def TESTARTIFACTS_GROUP = 'test artifacts'
+def DEVENV_GROUP = 'development tools'
+
// All packaging logic is separated into its own build module
apply from: 'packages.gradle'
-def TESTARTIFACTS_GROUP = 'test artifacts'
+task toolchain(type:Exec,
+ description: 'Setup dev. env via toolchain; Requires: Puppet, sudo',
+ group: DEVENV_GROUP) {
+ def command = [
+ 'sudo', 'puppet', 'apply', '-d',
+ "--modulepath=${projectDir.absolutePath}", '-e',
+ 'include bigtop_toolchain::installer'
+ ]
+ workingDir '.'
+ commandLine command
+}
task installTopLevel(type:Exec) {
workingDir "."