aboutsummaryrefslogtreecommitdiff
path: root/analysis/Justfile
blob: 837a79edbda911bd2da35396fdd9d0171c5eb81d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
default:
  livebook server

fetch job: (download-log job) (download-other job)

download-log job:
  mkdir -p {{justfile_directory()}}/{{job}}
  curl https://git.tardisproject.uk/tcmal/dissertation/-/jobs/{{job}}/raw > {{justfile_directory()}}/{{job}}/log
  ./split-log.py {{justfile_directory()}}/{{job}}/log
  grep -R -H -i 'error' {{justfile_directory()}}/{{job}}/sections/

download-other job:
  rsync -ravP candelabra:/opt/candelabra/src/tests/target/criterion/ {{justfile_directory()}}/{{job}}/criterion
  rsync -ravP candelabra:/opt/candelabra/src/target/candelabra/ {{justfile_directory()}}/{{job}}/candelabra
  rm -rf {{justfile_directory()}}/{{job}}/criterion/report
  find {{justfile_directory()}}/{{job}}/criterion -iname '*.svg' -exec rm '{}' \;
  find {{justfile_directory()}}/{{job}}/criterion -iname '*.html' -exec rm '{}' \;