Skip to content

Commit

Permalink
use new path.env in run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jangorecki committed Dec 12, 2018
1 parent 5562a07 commit cf19b07
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ set -e

# get config
source run.conf

# cleanup
rm -f *.png
rm -f *.env
rm -f rmarkdown.out
rm -rf db-benchmark.gh-pages
source path.env

# set batch
export BATCH=$(date +%s)
Expand All @@ -32,9 +27,12 @@ if [[ "$DO_UPGRADE" == true && "$RUN_SOLUTIONS" =~ "spark" ]]; then ./spark/init
Rscript ./launcher.R

# publish report for all tasks
rm -rf public && Rscript -e 'rmarkdown::render("index.Rmd", output_dir="public")' > ./rmarkdown.out 2>&1 && echo "# Benchmark report produced"
rm -f rmarkdown.out
rm -rf public
Rscript -e 'rmarkdown::render("index.Rmd", output_dir="public")' > ./rmarkdown.out 2>&1 && echo "# Benchmark report produced"

# publish benchmark, only if token file exists
rm -rf db-benchmark.gh-pages
$DO_PUBLISH && [ -f ./report-success ] && [ -f ./token ] && ((./publish.sh && echo "# Benchmark results has been published") || echo "# Benchmark publish script failed")
# completed
Expand Down

0 comments on commit cf19b07

Please sign in to comment.