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