2 # https://vadosware.io/post/zero-to-continuous-integrated-testing-a-haskell-project-with-gitlab/
5 image: adinapoli/gargantext:v2
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 "stack build --no-terminal --haddock --no-haddock-deps --only-dependencies --fast --dry-run"
37 # cache per branch name
38 # key: ${CI_COMMIT_REF_SLUG}
44 - nix-shell --run "stack build --no-terminal --haddock --no-haddock-deps --fast --dry-run"
45 - cp -R "$(stack path --local-install-root)"/doc ./output
55 # cache per branch name
56 # key: ${CI_COMMIT_REF_SLUG}
63 - nix-shell --run "./bin/update-cabal-project && cabal v2-build"
69 # cache per branch name
70 # key: ${CI_COMMIT_REF_SLUG}
77 - nix-shell --run "cabal v2-test --test-show-details=streaming"