Skip to content
Snippets Groups Projects
Commit f87d77ee authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

build and upload haskell api docs

parent 264e8cc8
No related branches found
No related tags found
1 merge request!14Try out a CircleCI configuration
...@@ -87,11 +87,13 @@ jobs: ...@@ -87,11 +87,13 @@ jobs:
# --coverage gathers test coverage information to be published # --coverage gathers test coverage information to be published
# below. # below.
# #
# --haddock-internal builds our own Haskell API docs with Haddock
#
# --fast turns off compiler optimizations which probably doesn't # --fast turns off compiler optimizations which probably doesn't
# make a lot of difference in our code but it can speed up build # make a lot of difference in our code but it can speed up build
# times for our dependencies (as well as reduce compiler memory # times for our dependencies (as well as reduce compiler memory
# usage which may be important at least for stripe-core). # usage which may be important at least for stripe-core).
nix-shell shell.nix --run "stack build --no-terminal --test --coverage --fast" nix-shell shell.nix --run "stack build --no-terminal --test --coverage --haddock-internal --fast"
- save_cache: - save_cache:
name: "Cache Dependencies" name: "Cache Dependencies"
...@@ -111,9 +113,10 @@ jobs: ...@@ -111,9 +113,10 @@ jobs:
path: ".stack-work/logs" path: ".stack-work/logs"
- run: - run:
name: "Prepare Coverage Report For Upload" name: "Prepare Artifacts for Upload"
command: | command: |
mv $(nix-shell shell.nix --run "stack path --local-install-root")/hpc /tmp mv $(nix-shell shell.nix --run "stack path --local-hpc-root") /tmp
mv $(nix-shell shell.nix --run "stack path --local-doc-root")/PaymentServer-* /tmp/PaymentServer-docs
- store_artifacts: - store_artifacts:
# This contains the html coverage report as well as the raw data in # This contains the html coverage report as well as the raw data in
...@@ -121,6 +124,11 @@ jobs: ...@@ -121,6 +124,11 @@ jobs:
path: "/tmp/hpc" path: "/tmp/hpc"
destination: "coverage" destination: "coverage"
- store_artifacts:
# This contains the html haddock output for the project.
path: "/tmp/PaymentServer-docs"
destination: "docs"
workflows: workflows:
version: 2 version: 2
everything: everything:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment