.gitlab-ci.yml 998 Bytes
Newer Older
Hans-Peter Deifel's avatar
Hans-Peter Deifel committed
1
image: haskell:8.6.3
Hans-Peter Deifel's avatar
Hans-Peter Deifel committed
2

3 4 5 6 7 8 9 10 11
# Change stacks global directory to be inside the project directory,
# since we can only cache local dependencies.
variables:
  STACK_ROOT: "$CI_PROJECT_DIR/.stack-root"

cache:
  paths:
    - .stack-root/

12 13
test_branch:
  script:
14
    - stack --no-terminal --system-ghc --no-install-ghc build --copy-bins --test --haddock --no-haddock-deps --bench --no-run-benchmarks --flag copar:benchmark-generators
15
    - cp -r ~/.local/bin/ copar-linux-binaries
16 17
  except:
    - master
18 19 20 21 22
  artifacts:
    name: "${CI_PROJECT_NAME}-linux-binaries"
    expire_in: 2 weeks
    paths:
        - copar-linux-binaries/
23

Hans-Peter Deifel's avatar
Hans-Peter Deifel committed
24
test:
25
  script:
26
    - stack --no-terminal --system-ghc --no-install-ghc build --copy-bins --test --haddock --no-haddock-deps --bench --no-run-benchmarks --flag copar:benchmark-generators
27
    - cp -r ~/.local/bin/ copar-linux-binaries
28 29
  only:
    - master
30 31 32 33
  artifacts:
    name: "${CI_PROJECT_NAME}-linux-binaries"
    expire_in: 10 yrs
    paths:
34
        - copar-linux-binaries/