Commit 4f4945a0 authored by Alfredo Di Napoli's avatar Alfredo Di Napoli

Downgrade .gitlab-ci.yml to support old CI

This commit removes the 'cache:key:files' directive because our CI's
gitlab is currently too old to support it.
parent 0bb71987
Pipeline #4356 passed with stage
...@@ -17,28 +17,20 @@ stages: ...@@ -17,28 +17,20 @@ stages:
stack: stack:
stage: stack stage: stack
cache: cache:
key: key: stack.yaml
files:
- stack.yaml
paths: paths:
- .stack-root/ - .stack-root/
- .stack-work/ - .stack-work/
- dist-newstyle/
- .cabal/
script: script:
- echo "Building the project from '$CI_PROJECT_DIR'" - echo "Building the project from '$CI_PROJECT_DIR'"
- nix-shell --run "stack build --no-terminal --fast --dry-run" - nix-shell --run "stack build --no-terminal --fast --dry-run"
cabal: cabal:
stage: cabal stage: cabal
cache: cache:
key: key: cabal.project
files:
- cabal.project
paths: paths:
- .stack-root/
- .stack-work/
- dist-newstyle/ - dist-newstyle/
- .cabal/ - .cabal/
policy: pull-push policy: pull-push
...@@ -49,12 +41,8 @@ cabal: ...@@ -49,12 +41,8 @@ cabal:
test: test:
stage: test stage: test
cache: cache:
key: key: cabal.project
files:
- gargantext.cabal
paths: paths:
- .stack-root/
- .stack-work/
- dist-newstyle/ - dist-newstyle/
- .cabal/ - .cabal/
policy: pull policy: pull
...@@ -64,20 +52,21 @@ test: ...@@ -64,20 +52,21 @@ test:
docs: docs:
stage: docs stage: docs
cache: cache:
key: stack.yaml
paths: paths:
- .stack-root/ - .stack-root/
- .stack-work/ - .stack-work/
- dist-newstyle/
- .cabal/
- target
policy: pull policy: pull
script: script:
- nix-shell --run "stack build --no-terminal --haddock --no-haddock-deps --fast --dry-run" - nix-shell --run "stack build --no-terminal --haddock --no-haddock-deps --fast --dry-run"
- cp -R "$(stack path --local-install-root)"/doc ./output - cp -R "$(stack path --local-install-root)"/doc ./output
rules: # FIXME(adinapoli) Currently Gitlab 11.x doesn't support the 'rules' keyword.
- if: '$CI_MERGE_REQUEST_IID' # Run job on Merge Requests # rules:
# - if: '$CI_MERGE_REQUEST_IID' # Run job on Merge Requests
only:
- merge_requests
artifacts: artifacts:
paths: paths:
- ./output - ./output
expire_in: 1 week expire_in: 1 week
allow_failure: true allow_failure: true
\ No newline at end of file
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