Skip to content

Commit

Permalink
Copy stats JSON to www/data folder
Browse files Browse the repository at this point in the history
This is used on the lower half of /genesis
  • Loading branch information
thvitt committed Nov 11, 2019
1 parent 3db08b8 commit cbd6abf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.gradle
Expand Up @@ -62,6 +62,7 @@ task installMacrogen(type: Exec) {
workingDir projectDir
args "install", "-U", "-e", "."

inputs.file "setup.py"
outputs.file "$venv/bin/macrogen"
}

Expand Down Expand Up @@ -99,15 +100,21 @@ task runMacrogenAnalysis {
task runMacrogenReporting {
description 'Runs the macrogenesis reporting phase'
group 'macrogen'
dependsOn runMacrogenAnalysis
dependsOn installMacrogen
dependsOn prepareMacrogenOptions
dependsOn runMacrogenAnalysis
inputs.files(project.macrogenInputs)
doLast {
project.exec {
args "-i", "$buildDir/macrogen-graphs.zip"
args macrogenArgs
executable macrogenExecutable
}
project.copy {
into "$buildDir/www/data"
from "$macrogen_reports"
include "witness-stats.json"
}
}
inputs.file("$buildDir/macrogen-graphs.zip")
outputs.dir("$macrogen_reports")
Expand Down

0 comments on commit cbd6abf

Please sign in to comment.