Skip to content
Snippets Groups Projects
Unverified Commit a0091295 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone Committed by GitHub
Browse files

Merge pull request #28 from PrivateStorageio/fix-doc-build

Get stack to compute the doc path correctly

Pass the same flags so the snapshot is computed the same so the paths match.
parents 3438a8a9 a44cd9f8
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,6 @@ jobs: ...@@ -110,7 +110,6 @@ jobs:
BUILD="stack build \ BUILD="stack build \
--no-terminal \ --no-terminal \
--only-dependencies \ --only-dependencies \
--fast \
--jobs 1 \ --jobs 1 \
--interleaved-output" --interleaved-output"
nix-shell shell.nix --run "$BUILD" nix-shell shell.nix --run "$BUILD"
...@@ -140,17 +139,11 @@ jobs: ...@@ -140,17 +139,11 @@ jobs:
# --no-terminal avoids having fancy progress reports written to # --no-terminal avoids having fancy progress reports written to
# stdout. # stdout.
# #
# --fast turns off compiler optimizations which probably doesn't
# make a lot of difference in our code but it can speed up build
# times for our dependencies (as well as reduce compiler memory
# usage which may be important at least for stripe-core).
#
# --haddock builds the Haskell API documentation. # --haddock builds the Haskell API documentation.
# --haddock-internal builds docs even for unexposed modules. # --haddock-internal builds docs even for unexposed modules.
# --no-haddock-deps skips building docs for all our dependencies. # --no-haddock-deps skips building docs for all our dependencies.
BUILD="stack build \ BUILD="stack build \
--no-terminal \ --no-terminal \
--fast \
--haddock \ --haddock \
--haddock-internal \ --haddock-internal \
--no-haddock-deps" --no-haddock-deps"
...@@ -169,7 +162,16 @@ jobs: ...@@ -169,7 +162,16 @@ jobs:
- run: - run:
name: "Prepare Artifacts for Upload" name: "Prepare Artifacts for Upload"
command: | command: |
mv $(nix-shell shell.nix --run "stack path --local-doc-root")/PaymentServer-* /tmp/PaymentServer-docs # The flags passed to `stack path` need to pretty closely match
# those passed to `stack build` or the path comes out wrong.
# https://github.com/commercialhaskell/stack/issues/4892
GETPATH="stack path \
--haddock \
--haddock-internal \
--no-haddock-deps \
--local-doc-root"
mv $(nix-shell shell.nix --run "$GETPATH")/PaymentServer-* /tmp/PaymentServer-docs
- store_artifacts: - store_artifacts:
# This contains the html haddock output for the project. # This contains the html haddock output for the project.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment