Clean up example
This commit is contained in:
parent
47953d3797
commit
835545c658
@ -7,10 +7,6 @@
|
|||||||
|
|
||||||
tmp_dir=/home/pluehne/tmp
|
tmp_dir=/home/pluehne/tmp
|
||||||
|
|
||||||
echo "job ID: $JOB_ID"
|
|
||||||
echo "job key: $JOB_KEY"
|
|
||||||
echo "job result repository URL: $JOB_RESULT_REPOSITORY_URL"
|
|
||||||
|
|
||||||
mkdir -p "$tmp_dir"
|
mkdir -p "$tmp_dir"
|
||||||
dir="$tmp_dir"/"job-$JOB_ID"
|
dir="$tmp_dir"/"job-$JOB_ID"
|
||||||
|
|
||||||
@ -29,15 +25,14 @@ pushd "$dir"
|
|||||||
git config user.email "bot@potassco.org"
|
git config user.email "bot@potassco.org"
|
||||||
|
|
||||||
echo "start of benchmark output of job $JOB_KEY" > output
|
echo "start of benchmark output of job $JOB_KEY" > output
|
||||||
|
|
||||||
sleep "$TIME"
|
sleep "$TIME"
|
||||||
echo "collected $FRUIT" >> output
|
echo "collected $FRUIT" >> output
|
||||||
start_time=$(date +%s%N)
|
|
||||||
echo "end of benchmark output of job $JOB_KEY" >> output
|
echo "end of benchmark output of job $JOB_KEY" >> output
|
||||||
|
|
||||||
git add output
|
git add output
|
||||||
git commit -m "Add results of job $JOB_KEY"
|
git commit -m "Add results of job $JOB_KEY"
|
||||||
git push
|
git push
|
||||||
end_time=$(date +%s%N)
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
echo $(expr "$end_time" - "$start_time") >> "$tmp_dir"/overhead
|
|
||||||
popd
|
popd
|
Loading…
Reference in New Issue
Block a user