Skip to content

Commit

Permalink
switch to disable building reports
Browse files Browse the repository at this point in the history
  • Loading branch information
jangorecki committed Mar 7, 2019
1 parent eade630 commit 95b3915
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions run.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ export DO_UPGRADE=true
# force run, ignore if same version was run already
export FORCE_RUN=false

# flag to build reports, used in ruh.sh before publish
export DO_REPORT=true

# flag to publish, used in ruh.sh before exit
export DO_PUBLISH=true
10 changes: 5 additions & 5 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ Rscript ./launcher.R
# publish report for all tasks
rm -rf public
rm -f report-done
Rscript -e 'rmarkdown::render("index.Rmd", output_dir="public")' > ./out/rmarkdown_index.out 2>&1 && echo "# Benchmark index report produced"
Rscript -e 'rmarkdown::render("groupby.Rmd", output_dir="public")' > ./out/rmarkdown_groupby.out 2>&1 && echo "# Benchmark groupby report produced"
Rscript -e 'rmarkdown::render("history.Rmd", output_dir="public")' > ./out/rmarkdown_history.out 2>&1 && echo "# Benchmark history report produced"
Rscript -e 'rmarkdown::render("tech.Rmd", output_dir="public")' > ./out/rmarkdown_tech.out 2>&1 && echo "# Benchmark tech report produced"
$DO_REPORT && Rscript -e 'rmarkdown::render("index.Rmd", output_dir="public")' > ./out/rmarkdown_index.out 2>&1 && echo "# Benchmark index report produced"
$DO_REPORT && Rscript -e 'rmarkdown::render("groupby.Rmd", output_dir="public")' > ./out/rmarkdown_groupby.out 2>&1 && echo "# Benchmark groupby report produced"
$DO_REPORT && Rscript -e 'rmarkdown::render("history.Rmd", output_dir="public")' > ./out/rmarkdown_history.out 2>&1 && echo "# Benchmark history report produced"
$DO_REPORT && Rscript -e 'rmarkdown::render("tech.Rmd", output_dir="public")' > ./out/rmarkdown_tech.out 2>&1 && echo "# Benchmark tech report produced"

# publish benchmark, only if all reports successfully generated (logged in ./report-done file), and token file exists
rm -rf db-benchmark.gh-pages
$DO_PUBLISH \
$DO_REPORT && $DO_PUBLISH \
&& [ -f ./report-done ] \
&& [ $(wc -l report-done | awk '{print $1}') -eq 4 ] \
&& [ -f ./token ] \
Expand Down

0 comments on commit 95b3915

Please sign in to comment.