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

Merge remote-tracking branch 'origin/master' into 12.ristretto-privacypass

parents 4cf7ea6f e1335135
No related branches found
No related tags found
1 merge request!22Ristretto-flavored PrivacyPass
......@@ -74,6 +74,42 @@ jobs:
- paymentserver-v1-{{ checksum "stack.yaml" }}-{{ checksum "PaymentServer.cabal" }}
- paymentserver-v1-{{ checksum "stack.yaml" }}
- run:
# Build just our dependencies. It's nice to have this as a separate
# step so failures here are more easily identified as being
# unrelated to our code.
#
# See below for explanation of the various flags passed in. If the
# flags here differ from those below in a way that makes ghc think a
# library needs to be rebuilt then we'll build everything twice and
# our cache will be useless! Try not to make that happen.
name: "Build Dependencies"
command: |
BUILD="stack build \
--no-terminal \
--only-dependencies \
--fast \
--test \
--no-run-tests \
--jobs 1 \
--interleaved-output"
nix-shell shell.nix --run "$BUILD"
# Give it a good long while. stripe-core, in particular, can take a
# while to build.
no_output_timeout: "20m"
- save_cache:
# We can save the stack cache right here. It will have everything
# we want in it now that the dependencies have been built. And this
# way we get to save the cache whether or not the test suite goes on
# to succeed.
name: "Cache Dependencies"
key: paymentserver-v1-{{ checksum "stack.yaml" }}-{{ checksum "PaymentServer.cabal" }}
paths:
- "/root/.stack"
- ".stack-work"
- run:
name: "Run Tests"
command: |
......@@ -112,13 +148,6 @@ jobs:
--no-haddock-deps"
nix-shell shell.nix --run "$BUILD"
- save_cache:
name: "Cache Dependencies"
key: paymentserver-v1-{{ checksum "stack.yaml" }}-{{ checksum "PaymentServer.cabal" }}
paths:
- "/root/.stack"
- ".stack-work"
- save_cache:
name: "Cache Nix Store Paths"
key: paymentserver-nix-store-v1-{{ .Environment.NIXPKGS_REV }}
......
......@@ -67,4 +67,5 @@ extra-deps:
nix:
enable: true
# https://docs.haskellstack.org/en/stable/nix_integration/#using-a-custom-shellnix-file
shell-file: "stack-shell.nix"
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