aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorKonstantin Boudnik <cos@apache.org>2015-02-20 15:28:43 -0800
committerKonstantin Boudnik <cos@apache.org>2015-02-20 15:39:56 -0800
commitdb06288f64b703b0d4461b4eaec9206a6a7ee65a (patch)
tree8f314de6ea5a8cf81a72321a319b9ef6346a3355 /build.gradle
parentf5a8a375e1ea62d6fc7f7f7dacb7cb311da574fd (diff)
BIGTOP-1697. Bootstrap: hook up toolchain into gradle build
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle15
1 files changed, 14 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index 88e84b89..da12231e 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 "."