Commit 82baf54d authored by Alfredo Di Napoli's avatar Alfredo Di Napoli

Switch to gargantext:v1 docker image

parent d4e1a237
Pipeline #4008 failed with stage
in 8 minutes and 10 seconds
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
# https://vadosware.io/post/zero-to-continuous-integrated-testing-a-haskell-project-with-gitlab/ # https://vadosware.io/post/zero-to-continuous-integrated-testing-a-haskell-project-with-gitlab/
# #
# #
image: cgenie/stack-build:lts-18.18-garg image: adinapoli/gargantext:v1
#image: cgenie/nixos-stack:latest
variables: variables:
STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root" STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root"
...@@ -28,7 +27,7 @@ deps: ...@@ -28,7 +27,7 @@ deps:
- .stack-work/ - .stack-work/
- target - target
script: script:
- stack build --no-terminal --haddock --no-haddock-deps --only-dependencies --fast - stack --nix build --no-terminal --haddock --no-haddock-deps --only-dependencies --fast
docs: docs:
cache: cache:
...@@ -40,7 +39,7 @@ docs: ...@@ -40,7 +39,7 @@ docs:
- .stack-work/ - .stack-work/
- target - target
script: script:
- stack build --no-terminal --haddock --no-haddock-deps --fast - stack --nix build --no-terminal --haddock --no-haddock-deps --fast
- cp -R "$(stack path --local-install-root)"/doc ./output - cp -R "$(stack path --local-install-root)"/doc ./output
artifacts: artifacts:
paths: paths:
...@@ -57,7 +56,19 @@ test: ...@@ -57,7 +56,19 @@ test:
- .stack-work/ - .stack-work/
- target - target
script: script:
- stack test --no-terminal --fast - stack --nix test --no-terminal --fast
# TOOO # TOOO
cabal:
cache:
# cache per branch name
# key: ${CI_COMMIT_REF_SLUG}
paths:
- .stack
- .stack-root/
- .stack-work/
- target
script:
- nix-shell && hpack && cabal v2-build --dry-run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment