2 # https://vadosware.io/post/zero-to-continuous-integrated-testing-a-haskell-project-with-gitlab/
5 image: adinapoli/gargantext:v1
8 STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root"
9 STACK_OPTS: "--system-ghc"
13 #- apt-get install make xz-utils
22 # cache per branch name
23 # key: ${CI_COMMIT_REF_SLUG}
30 - stack --nix build --no-terminal --haddock --no-haddock-deps --only-dependencies --fast
34 # cache per branch name
35 # key: ${CI_COMMIT_REF_SLUG}
42 - stack --nix build --no-terminal --haddock --no-haddock-deps --fast
43 - cp -R "$(stack path --local-install-root)"/doc ./output
51 # cache per branch name
52 # key: ${CI_COMMIT_REF_SLUG}
59 - stack --nix test --no-terminal --fast
65 # cache per branch name
66 # key: ${CI_COMMIT_REF_SLUG}
73 - nix-shell && hpack && cabal v2-build --dry-run