From 2a1583742d14f4cd12bb963c9fd28e248c7e2952 Mon Sep 17 00:00:00 2001 From: Julien Tanguy Date: Tue, 17 Nov 2015 13:05:17 +0100 Subject: Copy benchmark report to haddock --- .travis.yml | 2 +- scripts/pushdoc.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 45796f3..67c3e30 100644 --- a/.travis.yml +++ b/.travis.yml @@ -85,7 +85,7 @@ script: fi - cabal build # this builds all libraries and executables (including tests/benchmarks) - run-cabal-test test - - cabal bench + - cabal bench --benchmark-options="--output benchmark.html" - cabal check - cabal sdist # tests that a source-distribution can be generated # Check that the resulting source distribution can be built & installed. diff --git a/scripts/pushdoc.sh b/scripts/pushdoc.sh index 34c811a..ccae6c9 100644 --- a/scripts/pushdoc.sh +++ b/scripts/pushdoc.sh @@ -7,6 +7,9 @@ cabal haddock # Go to haddock output dir cd dist/doc/html/hmacaroons +# Copy benchmark +cp benchmark.html dist/doc/html/hmacaroons + # Quiet the git init message, since it's not useful in the build log git init > /dev/null 2>&1 -- cgit v1.2.3