Commit 7c2db649 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[test] CI cache dir, test stage added

parent ef7f3bfc
Pipeline #1480 canceled with stage
...@@ -5,15 +5,9 @@ ...@@ -5,15 +5,9 @@
image: cgenie/stack-build:lts-17.13-garg image: cgenie/stack-build:lts-17.13-garg
variables: variables:
STACK_ROOT: "${CI_PROJECT_DIR}/.stack" STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root"
STACK_OPTS: "--system-ghc" STACK_OPTS: "--system-ghc"
cache:
paths:
- .stack
- .stack-work
- target
#before_script: #before_script:
#- apt-get update #- apt-get update
#- apt-get install make xz-utils #- apt-get install make xz-utils
...@@ -23,11 +17,22 @@ stages: ...@@ -23,11 +17,22 @@ stages:
- test - test
build: build:
stage: build cache:
key: "$CI_JOB_NAME"
paths:
- .stack-root/
- .stack-work/
script:
- stack build --no-terminal --haddock --no-haddock-deps --fast
test:
cache:
key: "$CI_JOB_NAME"
paths:
- .stack-root/
- .stack-work/
script: script:
- rm -rf .stack - stack test --no-terminal --fast
- rm -rf .stack-work
- stack build --haddock --no-haddock-deps --fast
# TOOO # TOOO
#unit-test: #unit-test:
......
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