Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Passing release=true when building kibi-core
Browse files Browse the repository at this point in the history
  • Loading branch information
szydan committed Dec 23, 2016
1 parent cfa727c commit 9eaa065
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,20 @@ task cloneSources << {
Grgit.clone(dir: file("${buildDir}/sources"), uri: "file:https://${projectDir}")
}

task build(dependsOn: [npmInstall, npm_run_test, npm_run_build]) << {}
def getBuildArgs() {
if (project.version.endsWith("-SNAPSHOT")) {
return ["run", "build", "--", "--release=false", "--skip-os-packages=true"]
}
return ["run", "build", "--", "--release=true", "--skip-os-packages=true"]
}

task npmBuildWithOpts(type: NpmTask) {
args = getBuildArgs()
}

task build(dependsOn: [npmInstall, npm_run_test, npmBuildWithOpts])
npm_run_test.mustRunAfter npmInstall
npm_run_build.mustRunAfter npm_run_test
npmBuildWithOpts.mustRunAfter npm_run_test

///////////////////////////////////////////////////
// //
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"test:ui:runner": "grunt test:ui:runner",
"test:server": "grunt test:server",
"test:coverage": "grunt test:coverage",
"build": "grunt build --skip-os-packages",
"build": "grunt build --skip-os-packages=true",
"release": "grunt release",
"start": "./bin/kibi --dev",
"precommit": "grunt precommit",
Expand Down

0 comments on commit 9eaa065

Please sign in to comment.