CI: Fix metric diff reporting
Turns out `compare` reports the metric on stderr. Could add a ` 2>&1`
but like, why not just order things right; it's nice to have the metric
be on its own line anyway, since the filename is variable-length.
diff --git a/circle.yml b/circle.yml
index 92ce445..5ba036c 100644
--- a/circle.yml
+++ b/circle.yml
@@ -214,8 +214,8 @@
# if evergreen browser, browser version of previous screenshot may not match,
# so replace previous browser version with glob
baseline=baseline/"$(sh -c "ls $(echo $file | sed 's/[^_]*_(evergreen)/*/')")"
- metric_diff=$(compare -metric AE -compose src $baseline $file raw_diffs/$file)
- echo "Metric diff for $file: $metric_diff"
+ echo "Metric diff for $file:"
+ compare -metric AE -compose src $baseline $file raw_diffs/$file
composite -alpha on raw_diffs/$file $prev ${file/%.png/_DIFF.png}
done
post: