forked from JuliaSmoothOptimizers/DCISolver.jl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
push_benchmarks.sh
15 lines (11 loc) · 677 Bytes
/
push_benchmarks.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
julia --project=benchmark benchmark/send_comment_to_pr.jl -o $org -r $repo -p $pullrequest -c '**Starting benchmarks!**'
LOCAL_BRANCH_NAME="temp_bmark"
git checkout $LOCAL_BRANCH_NAME -- || true
julia --project=benchmark benchmark/$1 $repo
if [ "$?" -eq "0" ] ; then
julia --project=benchmark benchmark/send_comment_to_pr.jl -o $org -r $repo -p $pullrequest -c "Benchmark results" -g "gist.json"
else
ERROR_LOGS="/home/jenkins/benchmarks/$org/$repo/${pullrequest}_${BUILD_NUMBER}_bmark_error.log"
julia --project=benchmark benchmark/send_comment_to_pr.jl -o $org -r $repo -p $pullrequest -c "**An error occured while running $1**" -g $ERROR_LOGS
fi