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}
31 - echo "Building the project from '$CI_PROJECT_DIR'"
32 - nix-shell --run "LC_ALL=C.UTF-8 stack build --no-terminal --haddock --no-haddock-deps --only-dependencies --fast"
37 # cache per branch name
38 # key: ${CI_COMMIT_REF_SLUG}
44 - nix-shell --run "LC_ALL=C.UTF-8 stack build --no-terminal --haddock --no-haddock-deps --fast"
45 - cp -R "$(stack path --local-install-root)"/doc ./output
55 # cache per branch name
56 # key: ${CI_COMMIT_REF_SLUG}
62 - nix-shell --run "stack test --no-terminal --fast"
67 # FIXME(adinapoli) A temporary hack until we switch to cabal 3.10.1.0 properly
70 # cache per branch name
71 # key: ${CI_COMMIT_REF_SLUG}
78 - nix-shell --run "./bin/update-cabal-project && cabal v2-build --dry-run"