port deprecated imports stuff to Shake

This commit is contained in:
Brian Hicks 2020-10-28 05:32:02 -05:00
parent bfae039d90
commit a1b71b48ff

View File

@ -23,3 +23,17 @@ main = shakeArgs shakeOptions {shakeFiles = "_build"} $ do
"log/percy-tests" %> \out -> do
Stdout report <- cmd "script/percy-tests.sh"
writeFileChanged out report
-- deprecated imports
--
-- still need something to error when they fail (i.e. when running the
-- `check` subcommand)
"log/deprecated-imports-report.txt" %> \out -> do
need ["script/deprecated-imports.py"]
Stdout report <- cmd "script/deprecated-imports.py report"
writeFileChanged out report
"log/deprecated-imports.csv" %> \out -> do
need ["script/deprecated-imports.py"]
cmd_ "script/deprecated-imports.py" "--imports-file" out "update"