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
24 # cache per branch name
25 # key: ${CI_COMMIT_REF_SLUG}
33 - echo "Building the project from '$CI_PROJECT_DIR'"
34 - nix-shell && export LC_ALL=C.UTF-8 && stack -v build --no-terminal --haddock --no-haddock-deps --only-dependencies --fast
39 # cache per branch name
40 # key: ${CI_COMMIT_REF_SLUG}
48 - nix-shell && export LC_ALL=C.UTF-8 && stack build --no-terminal --haddock --no-haddock-deps --fast
49 - cp -R "$(stack path --local-install-root)"/doc ./output
58 # cache per branch name
59 # key: ${CI_COMMIT_REF_SLUG}
67 - nix-shell && export LC_ALL=C.UTF-8 && stack test --no-terminal --fast
74 # cache per branch name
75 # key: ${CI_COMMIT_REF_SLUG}
85 - nix-shell && export LC_ALL=C.UTF-8 && hpack && cabal v2-build --dry-run