diff --git a/.ci/esy-build-steps.yml b/.ci/esy-build-steps.yml index 5d185a79..bffbc103 100644 --- a/.ci/esy-build-steps.yml +++ b/.ci/esy-build-steps.yml @@ -8,7 +8,8 @@ steps: - template: utils/restore-build-cache.yml - script: "esy build --release" displayName: "esy build --release" - - template: utils/create-docs.yml + # odoc on windows in azure fails for unknown reason. Disable until figure out. + # - template: utils/create-docs.yml - script: "esy test" displayName: "Run tests" - task: PublishBuildArtifacts@1 diff --git a/bin/Main.ml b/bin/Main.ml index 64ea0852..d99e1da9 100644 --- a/bin/Main.ml +++ b/bin/Main.ml @@ -11,8 +11,10 @@ let getIOModule filename = type 'output diffResult = { exitCode : int; diff : 'output option } +(* Arguments must remain positional for the cmd parser lib that we use *) let main img1Path img2Path diffPath threshold outputDiffMask failOnLayoutChange - diffColorHex stdoutParsableString antialiasing ignoreRegions diffLines = + diffColorHex toEmitStdoutParsableString antialiasing ignoreRegions diffLines + = let module IO1 = (val getIOModule img1Path) in let module IO2 = (val getIOModule img2Path) in let module Diff = MakeDiff (IO1) (IO2) in @@ -26,7 +28,7 @@ let main img1Path img2Path diffPath threshold outputDiffMask failOnLayoutChange | Some col -> col | None -> (255, 0, 0)) () - |> Print.printDiffResult stdoutParsableString + |> Print.printDiffResult toEmitStdoutParsableString |> function | Layout -> { diff = None; exitCode = 21 } | Pixel (diffOutput, diffCount, stdoutParsableString, _) when diffCount = 0